Skip to main content
Quickstart
General Guides
Reference
Blog
Downloads
About
Archive
Tags
RSS Feed
listings
bash
foo.sh
foo.sh
(Source)
#!/bin/bash
((
EUID
==
0
))
||
{
echo
"Script must be run as root"
;
exit
1
}