Page MenuHomeDevCentral

D3679.id.diff
No OneTemporary

D3679.id.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, 02:36 (14 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2989677
Default Alt Text
D3679.id.diff (391 B)

Event Timeline