mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01: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…
Add table
Add a link
Reference in a new issue