Files
podman/hack/check_root.sh
Ed Santiago cfbc4aaeb5 Cleanup: fix problems reported by shell lint
Followup to #15616, which is not usable as it is (way, way, way
too much noise) but actually found a few real nits that should
be fixed.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-09-15 20:10:34 -06: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