Advertisement
v1ral_ITS

Ensure shell script is ran as root

May 29th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.07 KB | None | 0 0
  1. [[ $EUID -ne 0 ]] && echo "This script must be run as root." && exit 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement