mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
disko: don't fail in flake mode
This commit is contained in:
parent
45ef21831e
commit
7e52500078
1 changed files with 1 additions and 1 deletions
2
disko
2
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")
|
||||
|
|
Loading…
Reference in a new issue