From 6b5307818062ee18f67e1816a2c8ce373511693f Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 13 Feb 2025 11:37:22 +0400 Subject: [PATCH] runphp: tenir compte des codes de retour --- runphp/runphp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/runphp/runphp b/runphp/runphp index 594d5ed..2d9f499 100755 --- a/runphp/runphp +++ b/runphp/runphp @@ -594,17 +594,23 @@ if [ "$RUNPHP_MODE" != docker ]; then host_check_image && Bootstrap= || Bootstrap=1 fi if [ -n "$Bootstrap" ]; then - host_docker_build "${Cmd[@]}" + host_docker_build "${Cmd[@]}" || exit $? else host_ensure_image fi host_check_projdir - [ -n "$Composer" ] && host_docker_run "$Composer" + if [ -n "$Composer" ]; then + host_docker_run "$Composer" || exit $? + fi - [ ${#Cmd[*]} -gt 0 ] && host_docker_run "${Cmd[@]}" + if [ ${#Cmd[*]} -gt 0 ]; then + host_docker_run "${Cmd[@]}" || exit $? + fi else # Lancement depuis l'intérieur du container container_exec "$@" fi + +exit 0