From 3dbb24d7310180e40215b552dcd30554daa1846e Mon Sep 17 00:00:00 2001 From: David Arnold Date: Thu, 14 Sep 2023 17:16:34 +0200 Subject: [PATCH] fix: unbound variables are forbidden --- disko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disko b/disko index d2eb3f6..16d87d5 100755 --- a/disko +++ b/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