Page MenuHomeDevCentral

No OneTemporary

diff --git a/shell/is-user-root.sh b/shell/is-user-root.sh
index d79c612..6769227 100644
--- a/shell/is-user-root.sh
+++ b/shell/is-user-root.sh
@@ -1,10 +1,11 @@
# -------------------------------------------------------------
# Ensure user is root
#
# Note: POSIX shells don't always define $UID or $EUID.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# shellcheck disable=SC3028
if [ "${EUID:-$(id -u)}" -ne 0 ]; then
echo "This command must be run as root." >&2
exit 1
fi

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 18, 02:36 (23 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989377
Default Alt Text
(521 B)

Event Timeline