Skip to content

Commit

Permalink
Fix issue when config path contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
iFreilicht authored and mergify[bot] committed Oct 11, 2024
1 parent efe7528 commit 4c298a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disko
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ if [[ -n "${flake+x}" ]]; then
exit 1
fi
if [[ -e "$flake" ]]; then
flake=$(realpath "$flake")
flake="$(realpath "$flake")"
fi
nix_args+=("--arg" "flake" "\"$flake\"")
nix_args+=("--argstr" "flakeAttr" "$flakeAttr")
nix_args+=(--extra-experimental-features flakes)
elif [[ -n "${disko_config+x}" ]] && [[ -e "$disko_config" ]]; then
nix_args+=("--arg" "diskoFile" $(realpath "$disko_config"))
nix_args+=("--arg" "diskoFile" "$(realpath "$disko_config")")
else
abort "disko config must be an existing file or flake must be set"
fi
Expand Down

0 comments on commit 4c298a0

Please sign in to comment.