exit if not run as root

This commit is contained in:
Gwenhael Le Moine 2014-08-20 15:25:24 +02:00
parent b9d48fdd5a
commit 118b8e5dee

View file

@ -5,6 +5,7 @@ set -e
# Requires root ..
if [ "$UID" -ne 0 ]; then
echo "Please run as root"
exit 1
fi
CWD=$(pwd)