aboutsummaryrefslogtreecommitdiff
path: root/hack/check_root.sh
blob: 203eae9d365fc92bbfdfeb86ba169f6a936df7ff (plain)
1
2
3
4
5
#!/bin/bash
if ! [ $(id -u) = 0 ]; then
   echo "Please run as root! '$@' requires root privileges."
   exit 1
fi