Validate sudo on running update_graphql_data.sh

This commit is contained in:
Gustavo Trott 2024-04-19 15:11:38 -03:00
parent 046466b5c5
commit 842f2df4d4

View File

@ -1,4 +1,10 @@
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "Please run this script as root ( or with sudo )" ;
exit 1;
fi;
cd "$(dirname "$0")"
export LANGUAGE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"