fixed whoami

This commit is contained in:
zebra 2024-07-24 12:13:47 -07:00
parent 05fe53a43d
commit bfc1dee323

View File

@ -2,7 +2,7 @@
#Linux Onboarding Oneshot script for izebra networks. #Linux Onboarding Oneshot script for izebra networks.
#Installs fish, starship, and sets up some shell tweaks that are nice to have. #Installs fish, starship, and sets up some shell tweaks that are nice to have.
#Check script is running as root #Check script is running as root
if (whoami != root) if [ "$EUID" -ne 0 ]
then echo "Please run as Root" then echo "Please run as Root"
exit 1 exit 1
fi fi