mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
fix: unbound variables are forbidden
This commit is contained in:
parent
91af5b4a53
commit
3dbb24d731
1 changed files with 1 additions and 1 deletions
2
disko
2
disko
|
@ -105,7 +105,7 @@ if [[ -n "${flake+x}" ]]; then
|
|||
flake="${BASH_REMATCH[1]}"
|
||||
flakeAttr="${BASH_REMATCH[2]}"
|
||||
fi
|
||||
if [[ -z "$flakeAttr" ]]; then
|
||||
if [[ -z "${flakeAttr-}" ]]; then
|
||||
echo "Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri."
|
||||
echo "For example, to use the output diskoConfigurations.foo from the flake.nix, append \"#foo\" to the flake-uri."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue