From a92a2aa1cc1ce978f31e444f45424910dc3854b9 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 22 Oct 2023 22:07:58 +0200 Subject: [PATCH] fix: script perm check --- tools/server-remove-skel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/server-remove-skel.sh b/tools/server-remove-skel.sh index 0dc95dd..dd738d0 100755 --- a/tools/server-remove-skel.sh +++ b/tools/server-remove-skel.sh @@ -2,7 +2,7 @@ # remove skeleton **files** -if ! [ "$UID" = "0" ]; then +if ! [ "$(id -u)" = "0" ]; then echo "not root" exit 1 fi