Validate sudo on running update_graphql_data.sh
This commit is contained in:
parent
046466b5c5
commit
842f2df4d4
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user