fix: exit on sync error
Some checks failed
ci/woodpecker/push/sync Pipeline was successful
ci/woodpecker/manual/sync Pipeline was successful
ci/woodpecker/manual/build-wifi Pipeline failed
ci/woodpecker/manual/build-lte unknown status
ci/woodpecker/manual/copy unknown status

This commit is contained in:
nyyu 2023-03-26 12:28:30 +02:00
parent 0351de2fe9
commit a731d0e3a3

View File

@ -11,7 +11,7 @@ changelog=${TOPDIR}/changelog-mondrian-${version}.md
declare -A before
if [[ -f gitstate-mondrian-${version}.txt ]]
then
read -a tmp < gitstate-mondrian-${version}.txt
read -a tmp < gitstate-mondrian-${version}.txt
else
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
fi
@ -20,7 +20,7 @@ for i in "${tmp[@]}"; do
before[${folder}]=${commit}
done
repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
repo sync -q -c -j 6 --fail-fast --force-sync --no-tags || exit 1
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S %Z')\n" >>"${changelog}"