From: Scott Worley Date: Fri, 9 Feb 2024 01:28:33 +0000 (-0800) Subject: Consistently use 'pname' for profile names X-Git-Url: http://git.scottworley.com/nix-profile-gc/commitdiff_plain/aa867d5420864eeb9621a2adfd5af497444b76ce?ds=sidebyside Consistently use 'pname' for profile names --- 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}