From cfbdc877587d430b2cd22ce4d75e3b1cd74985af Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Thu, 5 Jan 2017 23:48:40 +0200 Subject: [PATCH] ZSH doesn't support writing to UID --- client/sources-linux/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/sources-linux/build.sh b/client/sources-linux/build.sh index fb68abc5..065a924f 100755 --- a/client/sources-linux/build.sh +++ b/client/sources-linux/build.sh @@ -1,5 +1,7 @@ #!/bin/sh -UID=`id -u` +if [ -z "$UID" ]; then + UID=`id -u` +fi if [ ! $UID -eq 0 ]; then echo "[!] You need to be root to run this script"