Page MenuHomeDevCentral

D3679.id9523.diff
No OneTemporary

D3679.id9523.diff

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

Mime Type
text/plain
Expires
Wed, Sep 17, 04:46 (16 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989677
Default Alt Text
D3679.id9523.diff (391 B)

Event Timeline