From d8aa89ebddc7beaf44b2398150dff625805c7493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 21 Dec 2022 13:55:36 +0100 Subject: [PATCH] fix error message if now flakeAttr was passed --- nixos-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-remote b/nixos-remote index 9bbc1a5..b657132 100755 --- a/nixos-remote +++ b/nixos-remote @@ -102,7 +102,7 @@ if [[ ! -z "${flake+x}" ]]; then flake="${BASH_REMATCH[1]}" flakeAttr="${BASH_REMATCH[2]}" fi - if [[ -z "$flakeAttr" ]]; then + if [[ -z "${flakeAttr+x}" ]]; 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 nixosConfigurations.foo from the flake.nix, append \"#foo\" to the flake-uri." exit 1