allow to run dry-run without using root

This commit is contained in:
Jörg Thalheim committed 2024-11-21 12:30:14 +01:00
1 parent a0c384e0a3
commit 4cbd22d868
1 file changed
+1 -1
+1 -1
View File
@@ -170,7 +170,7 @@ main() {
fi
# check if we are root
if [[ "$EUID" -ne 0 ]]; then
if [[ "$EUID" -ne 0 ]] && [[ -z ${dry_run-} ]]; then
echo "This script must be run as root" >&2
exit 1
fi