File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -223,12 +223,19 @@ function brew_go_bootstrap_mode {
223223 # Can't just `exit` because that would terminate the build without saving the cache
224224 # Have to replace further actions with no-ops
225225
226+ local MESSAGE=" " ; if [ " $EXIT_CODE " -ne 0 ]; then
227+ MESSAGE=' Building dependencies took too long. Restart the build in Travis UI to continue from cache.' ;
228+ fi
229+
226230 eval '
227231 function ' " $cmd " ' { return 0; }
228232 function repair_wheelhouse { return 0; }
229- function install_run {
230- echo -e "\nBuilding dependencies took too long. Restart the build in Travis UI to continue from cache.\n"
231-
233+ function install_run {' \
234+ " $( if [ -n " $MESSAGE " ]; then
235+ echo \
236+ ' echo -e "\n' " $MESSAGE " ' \n"'
237+ fi) " \
238+ '
232239 # Travis runs user scripts via `eval` i.e. in the same shell process.
233240 # So have to unset errexit in order to get to cache save stage
234241 set +e; return ' " $EXIT_CODE " '
You can’t perform that action at this time.
0 commit comments