diff options
author | lassulus <lassulus@lassul.us> | 2022-11-09 16:39:15 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-11-09 16:43:46 +0100 |
commit | 7e525000780e2ca94869e4ed41fe3242d257dd9d (patch) | |
tree | b46e070654e294ca6c086eed03ab2f379475bbe9 | |
parent | 45ef21831ee493de5efa97f48f1c31ca9dd54764 (diff) |
disko: don't fail in flake mode
-rwxr-xr-x | disko | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |