Also skip non-git directories

This commit is contained in:
vr8ce 2020-08-01 00:54:52 -05:00 committed by Alex Cabal
parent 85593d5858
commit dab3c4e0f7

View file

@ -131,6 +131,9 @@ for item in ./*/; do
printf "Updating %s ... " "${item}" printf "Updating %s ... " "${item}"
fi fi
# if it's not a repository directory, skip it
git -C "${item}" rev-parse > /dev/null 2>&1 || continue
# this works whether the repository is bare or a working directory # this works whether the repository is bare or a working directory
if [ "${verbosity}" -lt 2 ]; then if [ "${verbosity}" -lt 2 ]; then
git -C "${item}" fetch -q git -C "${item}" fetch -q