From 4cbd22d868af48cb88df4dd6e38a675924b9ba3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 21 Nov 2024 12:30:06 +0100 Subject: [PATCH] allow to run dry-run without using root --- disko-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disko-install b/disko-install index a10ff80..8ee5577 100755 --- a/disko-install +++ b/disko-install @@ -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