aboutsummaryrefslogtreecommitdiff
path: root/watch-git-tags.sh
diff options
context:
space:
mode:
Diffstat (limited to 'watch-git-tags.sh')
-rw-r--r--watch-git-tags.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/watch-git-tags.sh b/watch-git-tags.sh
index 857fbd0..ba63f1c 100644
--- a/watch-git-tags.sh
+++ b/watch-git-tags.sh
@@ -24,7 +24,9 @@ for sig in EXIT HUP INT TERM ; do
done
# Use current directory if no other arguments
-[ "$#" -gt 0 ] || set -- .
+if [ "$#" -eq 0 ] ; then
+ set -- "$PWD"
+fi
# Iterate through each repo in a subshell in parallel
for repo ; do (