From 7e525000780e2ca94869e4ed41fe3242d257dd9d Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 9 Nov 2022 16:39:15 +0100 Subject: disko: don't fail in flake mode --- disko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disko') diff --git a/disko b/disko index deb3cbd..d297832 100755 --- a/disko +++ b/disko @@ -78,7 +78,7 @@ if ! ([[ $mode = "create" ]] || [[ $mode = "mount" ]]); then abort "mode must be either create or mount" fi -if [[ -e "${disko_config}" ]]; then +if [[ -e "${disko_config+x}" ]]; then nix_args+=("--arg" "diskoFile" "$disko_config") elif [[ -n "${from_flake+x}" ]]; then nix_args+=("--argstr" "diskoFile" "$disko_config") -- cgit v1.2.3