From 28f36377a4f4d8d0ee4c74fa94572b66577d1563 Mon Sep 17 00:00:00 2001 From: pryme-svg Date: Sun, 25 Apr 2021 11:44:23 -0700 Subject: [PATCH] root user check posix compliance --- LULI.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LULI.sh b/LULI.sh index bc696e5..60c58a0 100644 --- a/LULI.sh +++ b/LULI.sh @@ -65,7 +65,7 @@ if [ "$TERM" = dumb ]; then exit fi -if [ "$(whoami)" = "root" ]; then +if [ $(id -u) -eq 0 ]; then Error "Don't run this script as root" exit fi