podman/hack/check_root.sh

6 lines
114 B
Bash
Executable File

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