diff options
Diffstat (limited to 'func.zsh')
-rw-r--r-- | func.zsh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/func.zsh b/func.zsh new file mode 100644 index 0000000..470f5db --- /dev/null +++ b/func.zsh @@ -0,0 +1,5 @@ +check_root() +{ + if [ `whoami` != root ]; then echo "Run this script as root, exiting!"; exit; fi +} + |