the modifications verify user privilege and prevent improper script execution.
pull/1841/head
Henrique 2 years ago committed by GitHub
parent 81d3492a61
commit ff3ce4da66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,6 +18,18 @@ print_usage() {
echo ''
}
print_err() {
echo ""
echo "$*"
echo ""
}
uid=$(id -u)
if [ $uid -ne 0 ]; then
print_err "Please use sudo or run the script as root."
exit 1
fi
while [ -n "$1" ]; do
if [ "$1" = "-s" ]; then
shift

Loading…
Cancel
Save