mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-10 01:31:45 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -546,9 +546,11 @@ function run_with_custom_exit_code() {
|
||||
set +e # temporarily disable exit on error to prevent premature exit
|
||||
|
||||
# runs command passed in as argument, save standard error and standard output
|
||||
output=$("$@" 2>&1)
|
||||
output=$(set -e; "$@" 2>&1)
|
||||
initial_exit_code=$?
|
||||
|
||||
echo "initial_exit_code: $initial_exit_code"
|
||||
|
||||
local trace_file="stdout_stderr_log.out"
|
||||
|
||||
echo "$output" | tee "$trace_file"
|
||||
|
Reference in New Issue
Block a user