When .disabled is present, do not pull repo

This commit is contained in:
Alexandre CATTEAU 2022-08-19 21:00:45 +02:00
parent dd0f0e115d
commit e2dcc5cf7c

View File

@ -8,6 +8,10 @@ for dir in $sync_directory/*; do
echo "$dir: not a Git repo"
continue
fi
if [ -f $dir/.disabled ]; then
echo "$dir update is disabled."
continue
fi
git -C $dir fetch 2>/dev/null >/dev/null
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git -C $dir rev-parse @)