fixed whoami
This commit is contained in:
parent
05fe53a43d
commit
bfc1dee323
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user