]> git.scottworley.com Git - nix-profile-gc/commitdiff
Consistently use 'pname' for profile names
authorScott Worley <scottworley@scottworley.com>
Fri, 9 Feb 2024 01:28:33 +0000 (17:28 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 9 Feb 2024 01:33:42 +0000 (17:33 -0800)
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
-        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}