summaryrefslogtreecommitdiff
path: root/func.zsh
blob: 470f5db1225fdaa6760135d16305815e81cc329b (plain)
1
2
3
4
5
check_root()
{
  if [ `whoami` != root ]; then echo "Run this script  as root, exiting!"; exit; fi
}