From 3aca5f7f960f0a9806c644d5336ba9557b14181b Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 17 Oct 2022 10:09:09 -0700 Subject: [PATCH] fix check for root user --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b83c70e..3815938 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # must be root -if [ "$USER" != "root" ]; then +if [ "${EUID}" -ne 0 ]; then echo "You must be root to run this installer." exit fi