From 1b03f137698eadf8979b4153ec16678ac8d6e9b7 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Sun, 5 Oct 2014 16:21:10 +0200 Subject: [PATCH] Fix UID acquisition for systems that don't set $UID --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f0974b4..61d6015 100755 --- a/install.sh +++ b/install.sh @@ -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