mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-26 22:10:26 +00:00
Fix build script failure if Xcode check finishes before install starts.
This commit is contained in:
parent
ccb709fc02
commit
3f62b012c3
1 changed files with 13 additions and 10 deletions
|
@ -255,6 +255,8 @@ check_xcode() {
|
||||||
|
|
||||||
# Expects CHECK_XCODE_TASK_PID to be set.
|
# Expects CHECK_XCODE_TASK_PID to be set.
|
||||||
handle_check_xcode_result() {
|
handle_check_xcode_result() {
|
||||||
|
if [[ -z ${HANDLED_CHECK_XCODE_RESULT:-} ]]; then
|
||||||
|
HANDLED_CHECK_XCODE_RESULT=1
|
||||||
# Wait for the Xcode checks to finish.
|
# Wait for the Xcode checks to finish.
|
||||||
set +e
|
set +e
|
||||||
trap - ERR
|
trap - ERR
|
||||||
|
@ -267,6 +269,7 @@ handle_check_xcode_result() {
|
||||||
if [[ ${CHECK_XCODE_TASK_STATUS} -ne 0 ]]; then
|
if [[ ${CHECK_XCODE_TASK_STATUS} -ne 0 ]]; then
|
||||||
handle_check_xcode_failure ${CHECK_XCODE_TASK_STATUS}
|
handle_check_xcode_failure ${CHECK_XCODE_TASK_STATUS}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_check_xcode_failure() {
|
handle_check_xcode_failure() {
|
||||||
|
|
Loading…
Reference in a new issue