summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-09 16:39:15 +0100
committerlassulus <lassulus@lassul.us>2022-11-09 16:43:46 +0100
commit7e525000780e2ca94869e4ed41fe3242d257dd9d (patch)
treeb46e070654e294ca6c086eed03ab2f379475bbe9
parent45ef21831ee493de5efa97f48f1c31ca9dd54764 (diff)
disko: don't fail in flake mode
-rwxr-xr-xdisko2
1 files changed, 1 insertions, 1 deletions
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")