From 6fd0de25798acf67c18aab12f747b79a63d8dae6 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Mon, 24 Feb 2025 19:59:12 -0500 Subject: [PATCH] u --- scripts/curae.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/curae.sh b/scripts/curae.sh index cbae734..920d2ed 100755 --- a/scripts/curae.sh +++ b/scripts/curae.sh @@ -24,7 +24,9 @@ home_dir=/usr/local/bin this_file=curae.sh -if [ "$EUID" -ne 0 ] +# https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script +#if [ "$EUID" -ne 0 ] +if [ $(id -u) -ne 0 ] then echo "error: run as 'root'" exit fi