Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722507
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
521 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Sep 18, 02:57 (23 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989377
Default Alt Text
(521 B)
Attached To
Mode
rSNIPPETS Snippets
Attached
Detach File
Event Timeline
Log In to Comment