summaryrefslogtreecommitdiff
path: root/func.zsh
blob: bf5b3d28841b139533f17db2437918de94dd8738 (plain)
1
2
3
4
5
6

check_root()
{
  if [ `whoami` != root ]; then echo "Run this script  as root, exiting!"; exit; fi
}