When .disabled is present, do not pull repo
This commit is contained in:
parent
dd0f0e115d
commit
e2dcc5cf7c
@ -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 @)
|
||||
|
Loading…
Reference in New Issue
Block a user