From adf9e04375d62af9b6b4fee77a6a2654356b0b9a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 30 Nov 2018 14:43:17 +1300 Subject: Use short-circuit logic for pre-fetch test --- watch-git-tags | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/watch-git-tags b/watch-git-tags index 7ff640a..02814cb 100755 --- a/watch-git-tags +++ b/watch-git-tags @@ -57,9 +57,8 @@ for repo ; do ( # Attempt to quietly fetch new tags so that we don't notify about the same # ones next time - if [ -s new ] ; then - git fetch --quiet --tags - fi + [ -s new ] || continue + git -C "$repo" fetch --quiet --tags ) & done -- cgit v1.2.3