summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-12-18 17:55:03 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-12-18 17:55:03 -0300
commit7e8764fb315b05068fe9d704734a2a4ec8588e54 (patch)
treef5da382d263bf0587d614c97d52705b4a51a8a60
parent73f4d0e6498dd590f0181ac8c1c2015d29ad168d (diff)
Check running as normal user
-rwxr-xr-xlibrerelease5
1 files changed, 5 insertions, 0 deletions
diff --git a/librerelease b/librerelease
index 56cf856..bc765fe 100755
--- a/librerelease
+++ b/librerelease
@@ -59,6 +59,11 @@ function clean {
find ${WORKDIR}/staging/ -type f -delete
}
+if [ -w / ]; then
+ error "Run $0 as normal user"
+ exit 1
+fi
+
while getopts 'hlcn' arg; do
case $arg in
h) usage; exit 0 ;;