From b2523d4bef9171c93641e71261abf0174d217d6a Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Date: Tue, 17 Jul 2012 18:27:51 +0530 Subject: [PATCH] Fix -cleanup listing all repos as unused. See #11. --- antigen.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 26e38cb..c8ae6c7 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -229,8 +229,11 @@ antigen-cleanup () { # Find directores in ADOTDIR/repos, that are not in the bundles record. local unused_clones="$(comm -13 \ - <(-antigen-echo-record | awk '{print $1 "|" $4}' | sort -u) \ - <(ls "$ADOTDIR/repos" | while read line; do + <(-antigen-echo-record \ + | awk '{print ($4 == "-" ? $1 : $1 "|" $4)}' \ + | sort -u) \ + <(ls "$ADOTDIR/repos" \ + | while read line; do -antigen-get-clone-url "$line" done))" -- 2.0.0