fix: exit on sync error
This commit is contained in:
parent
0351de2fe9
commit
a731d0e3a3
4
sync.sh
4
sync.sh
@ -11,7 +11,7 @@ changelog=${TOPDIR}/changelog-mondrian-${version}.md
|
|||||||
declare -A before
|
declare -A before
|
||||||
if [[ -f gitstate-mondrian-${version}.txt ]]
|
if [[ -f gitstate-mondrian-${version}.txt ]]
|
||||||
then
|
then
|
||||||
read -a tmp < gitstate-mondrian-${version}.txt
|
read -a tmp < gitstate-mondrian-${version}.txt
|
||||||
else
|
else
|
||||||
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
|
||||||
fi
|
fi
|
||||||
@ -20,7 +20,7 @@ for i in "${tmp[@]}"; do
|
|||||||
before[${folder}]=${commit}
|
before[${folder}]=${commit}
|
||||||
done
|
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}"
|
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S %Z')\n" >>"${changelog}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user