Fetch when source has changed

This commit is contained in:
southerntofu 2020-04-17 22:14:58 -04:00
parent 7486e872d7
commit 21429fa8fd
1 changed files with 3 additions and 0 deletions

View File

@ -17,5 +17,8 @@ for project in $BASEDIR/*.source; do
exit 1
fi
cd "$p_dir"
if ! git diff --quiet remotes/origin/HEAD; then
git pull
fi
GITBUILDDIR="$BASEDIR" eval "$BASEDIR/$p_name $p_name"
done