client: lib_docker: return compose error code

Returns code of compose failure or if `run`'s container returns error.
This commit is contained in:
2026-01-28 12:42:54 -08:00
parent 820286ba41
commit 697763b17e

View File

@@ -87,9 +87,8 @@ function lib_docker::__docker_compose()
[ ! -f "$global_env_file" ] \ [ ! -f "$global_env_file" ] \
&& lib_utils::die_fatal "$global_env_file not found! Run the gen command!" && lib_utils::die_fatal "$global_env_file not found! Run the gen command!"
pushd "$global_repo_dockerfiles" 1>/dev/null \ pushd "$global_repo_dockerfiles" 1>/dev/null || return $?
|| return $? \ docker compose -f docker-compose.yml --env-file "$global_env_file" "$@" || return $?
&& docker compose -f docker-compose.yml --env-file "$global_env_file" "$@"
popd 1>/dev/null || return $? popd 1>/dev/null || return $?
} }