podman/hack/check_root.sh

6 lines
122 B
Bash
Executable File

#!/usr/bin/env bash
if ! [ $(id -u) = 0 ]; then
echo "Please run as root! '$*' requires root privileges."
exit 1
fi