aboutsummaryrefslogtreecommitdiff
path: root/hack/check_root.sh
blob: 2489a4eddee1b6bc3921177b6b2b20dbc85de266 (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