Initial commit.
This commit is contained in:
7
vim/snippets/sh/ifroot.snippet
Executable file
7
vim/snippets/sh/ifroot.snippet
Executable file
@@ -0,0 +1,7 @@
|
||||
# Need to be logged in as root
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo " Need be root"
|
||||
sleep 2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user