X-Git-Url: http://git.scottworley.com/nix-profile-gc/blobdiff_plain/c47dfde776336a33d3a57503460703b91347e2b3..aa867d5420864eeb9621a2adfd5af497444b76ce:/modules/profile-gc.nix?ds=sidebyside 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}