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