mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2024-12-25 21:58:38 +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 ..
|
||||
if [ "$UID" -ne 0 ]; then
|
||||
echo "Please run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
|
|
Loading…
Reference in a new issue