From 7332b21170b5df5b05546610cdc44f7aab1d2927 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Mon, 20 Nov 2023 13:10:13 -0800 Subject: [PATCH] Fix equality check for running install_usr as root. --- install_usr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_usr.sh b/install_usr.sh index 25cbaff..29f432c 100755 --- a/install_usr.sh +++ b/install_usr.sh @@ -1,7 +1,7 @@ #! /bin/bash set -e -if [[ $EUID -ne 0 ]]; then +if [[ $EUID -eq 0 ]]; then echo "Cannot run as root." exit fi