X-Git-Url: http://git.scottworley.com/nix-profile-gc/blobdiff_plain/10533fbd6bdf5046f36e41c7848dbc6a324eb4cd..be8ae8748a47e5e696ab955012a61f73c1b3e6c0:/modules/profile-gc.nix 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