pull/367/head
KM4ACK 2022-01-06 15:46:21 -06:00
rodzic dbacdf8151
commit b52b0753be
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -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
#####################################