From 118b8e5dee319dfd104822b87baf5969d9fe5a3a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 20 Aug 2014 15:25:24 +0200 Subject: [PATCH] exit if not run as root --- build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sh b/build.sh index c9f3c88..afcaa52 100755 --- a/build.sh +++ b/build.sh @@ -5,6 +5,7 @@ set -e # Requires root .. if [ "$UID" -ne 0 ]; then echo "Please run as root" + exit 1 fi CWD=$(pwd)