disko cli: remove requirement for leading ./

Fixes #536
This commit is contained in:
Felix Uhl authored and mergify[bot] committed 2024-10-11 08:37:28 +00:00
1 parent d39ee33498
commit efe7528578
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ if [[ -n "${flake+x}" ]]; then
nix_args+=("--argstr" "flakeAttr" "$flakeAttr")
nix_args+=(--extra-experimental-features flakes)
elif [[ -n "${disko_config+x}" ]] && [[ -e "$disko_config" ]]; then
nix_args+=("--arg" "diskoFile" "$disko_config")
nix_args+=("--arg" "diskoFile" $(realpath "$disko_config"))
else
abort "disko config must be an existing file or flake must be set"
fi