From aa867d5420864eeb9621a2adfd5af497444b76ce Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 8 Feb 2024 17:28:33 -0800 Subject: [PATCH 1/1] Consistently use 'pname' for profile names --- 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 3a2e44a..cb9b3a2 100644 --- a/modules/profile-gc.nix +++ b/modules/profile-gc.nix @@ -166,8 +166,8 @@ in { echo "Contemplating profiles for $profile:" >&2 unset active declare -A active - while read p;do - active[$p]=1 + while read pname;do + active[$pname]=1 done < <(verbose_topn ${cfg.logdir}/active-profiles "$profile" ${escapeShellArg cfg.keepLastActive}) current=$(${pkgs.coreutils}/bin/readlink "$profile") currentgen=''${current%-link} -- 2.44.1