podman-build/hack/check_root.sh
2025-10-11 12:30:35 +09:00

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