Commit fdcb458fd98460bc8e1532121d54acfda7fab4cb

Authored by Shrikant Sharat
1 parent 889cc93f91

Update messes plugins with `--no-local-clone` set.

Showing 1 changed file with 10 additions and 5 deletions Side-by-side Diff

... ... @@ -106,15 +106,20 @@ antigen-update () {
106 106 date > $ADOTDIR/revert-info
107 107  
108 108 -antigen-echo-record |
109   - awk '{print $1}' |
  109 + awk '$4 == "true" {print $1}' |
110 110 sort -u |
111 111 while read url; do
112 112 echo "**** Pulling $url"
113   - (dir="$(-antigen-get-clone-dir "$url")"
114   - echo -n "$dir:"
115   - cd "$dir"
116   - git rev-parse HEAD) >> $ADOTDIR/revert-info
  113 +
  114 + local clone_dir="$(-antigen-get-clone-dir "$url")"
  115 + if [[ -d "$clone_dir" ]]; then
  116 + (echo -n "$clone_dir:"
  117 + cd "$clone_dir"
  118 + git rev-parse HEAD) >> $ADOTDIR/revert-info
  119 + fi
  120 +
117 121 -antigen-ensure-repo "$url" --update --verbose
  122 +
118 123 echo
119 124 done
120 125 }