kopia lustrzana https://github.com/km4ack/pi-build
pull/367/head
rodzic
dbacdf8151
commit
b52b0753be
12
build-a-pi
12
build-a-pi
|
@ -57,6 +57,18 @@ EOF
|
|||
exit 0
|
||||
fi
|
||||
|
||||
#####################################
|
||||
# Verify not run as root
|
||||
#####################################
|
||||
if [ "$WHO" = 'root' ]; then
|
||||
yad --form --width=500 --text-align=center --center --title="Build-a-Pi" --text-align=center \
|
||||
--image ${LOGO} --window-icon=${LOGO} --image-on-top --separator="|" --item-separator="|" \
|
||||
--text="<b>ROOT DETECTED</b>\rDon't run this script as root. \
|
||||
Restart the script without sudo" \
|
||||
--button=gtk-close
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#####################################
|
||||
# Old OS Check
|
||||
#####################################
|
||||
|
|
Ładowanie…
Reference in New Issue