mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
disko: don't fail in flake mode
This commit is contained in:
parent
45ef21831e
commit
7e52500078
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 New Issue
Block a user