Fix UID acquisition for systems that don't set $UID

This commit is contained in:
Janek Bevendorff 2014-10-05 16:21:10 +02:00
parent 7075faeb7a
commit 1b03f13769
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [[ "$1" != "all" ]] && [[ "$1" != "client" ]] && [[ "$1" != "server" ]]; then
exit
fi
if [ $UID -ne 0 ]; then
if [ $(id -u) -ne 0 ]; then
echo "ERROR: This script must be run as root."
exit 1
fi