aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 17:04:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 17:04:56 +1300
commit3c92ae0d570556eceae352faca5469d00989db7c (patch)
treeba9d73a08e12d9d2730ff8432aed749730a0d670
parentd4819eab1eb9429f2f5033f840db98f152c29736 (diff)
downloadwatch-vcs-tags-3c92ae0d570556eceae352faca5469d00989db7c.tar.gz
Use correct control structure for loop body exit
-rwxr-xr-xwatch-git-tags2
1 files changed, 1 insertions, 1 deletions
diff --git a/watch-git-tags b/watch-git-tags
index 890fa9e..b9fdce8 100755
--- a/watch-git-tags
+++ b/watch-git-tags
@@ -56,7 +56,7 @@ for repo ; do (
# Attempt to quietly fetch new tags so that we don't notify about the same
# ones next time
- [ -s tags/new ] || continue
+ [ -s tags/new ] || exit
git -C "$repo" fetch --quiet --tags
) & done