mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2024-12-26 21:58:20 +01:00
exit if not run as root
This commit is contained in:
parent
b9d48fdd5a
commit
118b8e5dee
1 changed files with 1 additions and 0 deletions
1
build.sh
1
build.sh
|
@ -5,6 +5,7 @@ set -e
|
||||||
# Requires root ..
|
# Requires root ..
|
||||||
if [ "$UID" -ne 0 ]; then
|
if [ "$UID" -ne 0 ]; then
|
||||||
echo "Please run as root"
|
echo "Please run as root"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
|
Loading…
Reference in a new issue