Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11724567
D3679.id9524.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
391 B
Referenced Files
None
Subscribers
None
D3679.id9524.diff
View Options
diff --git a/shell/is-user-root.sh b/shell/is-user-root.sh
--- a/shell/is-user-root.sh
+++ b/shell/is-user-root.sh
@@ -4,6 +4,7 @@
# 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 17, 16:03 (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989677
Default Alt Text
D3679.id9524.diff (391 B)
Attached To
Mode
D3679: Disable shellcheck warning for EUID
Attached
Detach File
Event Timeline
Log In to Comment