mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Also skip non-git directories
This commit is contained in:
parent
85593d5858
commit
dab3c4e0f7
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue