mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
allow to run dry-run without using root
This commit is contained in:
1 parent
a0c384e0a3
commit
4cbd22d868
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user