Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56334506
is-user-root.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
347 B
Referenced Files
None
Subscribers
None
is-user-root.sh
View Options
# -------------------------------------------------------------
# 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/plain
Expires
Sat, Nov 7, 03:55 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4251531
Default Alt Text
is-user-root.sh (347 B)
Attached To
Mode
rSNIPPETS Snippets
Attached
Detach File
Event Timeline
Log In to Comment