From bfc1dee323b4853613efe452a40a4682f8b5606b Mon Sep 17 00:00:00 2001 From: zebra Date: Wed, 24 Jul 2024 12:13:47 -0700 Subject: [PATCH] fixed whoami --- izebra-linux-oneshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/izebra-linux-oneshot.sh b/izebra-linux-oneshot.sh index 877e500..da72fdf 100644 --- a/izebra-linux-oneshot.sh +++ b/izebra-linux-oneshot.sh @@ -2,7 +2,7 @@ #Linux Onboarding Oneshot script for izebra networks. #Installs fish, starship, and sets up some shell tweaks that are nice to have. #Check script is running as root -if (whoami != root) +if [ "$EUID" -ne 0 ] then echo "Please run as Root" exit 1 fi