summaryrefslogtreecommitdiff
path: root/build_nightly
diff options
context:
space:
mode:
Diffstat (limited to 'build_nightly')
-rwxr-xr-xbuild_nightly5
1 files changed, 3 insertions, 2 deletions
diff --git a/build_nightly b/build_nightly
index 3bea61e..6f530d1 100755
--- a/build_nightly
+++ b/build_nightly
@@ -3,8 +3,9 @@
set -e
build_user=$1
-if [ $USER != $build_user ]; then
- su $build_user -c "$0 $@";
+needsu=$2
+if [ "$needsu" = needsu ]; then
+ su $build_user -c "$0 $1";
exit
fi