From be8ae8748a47e5e696ab955012a61f73c1b3e6c0 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 17 Nov 2022 06:03:04 -0800 Subject: [PATCH 1/1] profile-gc: No unbound variable references --- modules/profile-gc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/profile-gc.nix b/modules/profile-gc.nix index 8e69301..02b7238 100644 --- a/modules/profile-gc.nix +++ b/modules/profile-gc.nix @@ -161,11 +161,11 @@ in { echo "Keeeping current profile $p" >&2 continue fi - if [[ "''${active_targets[$(${pkgs.coreutils}/bin/readlink "$p")]}" ]];then + if [[ "''${active_targets[$(${pkgs.coreutils}/bin/readlink "$p")]:-}" ]];then echo "Keeeping active system/boot profile $p" >&2 continue fi - if [[ "''${active[$p]}" ]];then + if [[ "''${active[$p]:-}" ]];then echo "Keeeping active profile $p" >&2 continue fi -- 2.44.1