]> git.scottworley.com Git - nix-profile-gc/blobdiff - modules/profile-gc.nix
Consistently use 'pname' for profile names
[nix-profile-gc] / modules / profile-gc.nix
index 3a2e44a153975ea26ddf605a3a7a90e0fc7253d4..cb9b3a2d5371db2a2f6c186b9bcea0abe8a16d0f 100644 (file)
@@ -166,8 +166,8 @@ in {
         echo "Contemplating profiles for $profile:" >&2
         unset active
         declare -A active
         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}
         done < <(verbose_topn ${cfg.logdir}/active-profiles "$profile" ${escapeShellArg cfg.keepLastActive})
         current=$(${pkgs.coreutils}/bin/readlink "$profile")
         currentgen=''${current%-link}