1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Update build.sh - correct quoting in post-build.sh calls

This commit is contained in:
Pete Fotheringham 2023-07-31 07:36:01 +01:00 committed by GitHub
parent 0c98820f66
commit 2c6bc1d3f5
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -346,7 +346,7 @@ for branch in ${BRANCH_NAME//,/ }; do
# call post-build.sh so the failure is logged in a way that is more visible # call post-build.sh so the failure is logged in a way that is more visible
if [ -f /root/userscripts/post-build.sh ]; then if [ -f /root/userscripts/post-build.sh ]; then
echo ">> [$(date)] Running post-build.sh for $codename" >> "$DEBUG_LOG" echo ">> [$(date)] Running post-build.sh for $codename" >> "$DEBUG_LOG"
/root/userscripts/post-build.sh "$codename false $branch" &>> "$DEBUG_LOG" || echo ">> [$(date)] Warning: post-build.sh failed!" /root/userscripts/post-build.sh "$codename" false "$branch" &>> "$DEBUG_LOG" || echo ">> [$(date)] Warning: post-build.sh failed!"
fi fi
continue continue
fi fi
@ -404,7 +404,7 @@ for branch in ${BRANCH_NAME//,/ }; do
fi fi
if [ -f /root/userscripts/post-build.sh ]; then if [ -f /root/userscripts/post-build.sh ]; then
echo ">> [$(date)] Running post-build.sh for $codename" >> "$DEBUG_LOG" echo ">> [$(date)] Running post-build.sh for $codename" >> "$DEBUG_LOG"
/root/userscripts/post-build.sh "$codename $build_successful $branch" &>> "$DEBUG_LOG" || echo ">> [$(date)] Warning: post-build.sh failed!" /root/userscripts/post-build.sh "$codename" $build_successful "$branch" &>> "$DEBUG_LOG" || echo ">> [$(date)] Warning: post-build.sh failed!"
fi fi
echo ">> [$(date)] Finishing build for $codename" | tee -a "$DEBUG_LOG" echo ">> [$(date)] Finishing build for $codename" | tee -a "$DEBUG_LOG"