We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e80dd5 commit 52e4c56Copy full SHA for 52e4c56
1 file changed
tools/verify-release/verify-release.sh
@@ -219,14 +219,21 @@ function log_info {
219
# Following arguments: process arguments
220
function proc_exec {
221
local err_msg
222
- local output
+ local output_file
223
+ local exit_code
224
err_msg=$1
225
shift
- output=()
226
- IFS=$'\n' read -r -d '' -a output < <( "${@}" 2>&1 && printf '\0' ) || (
227
- log_fatal "${err_msg}" "${output[@]}"
+ output_file=$(mktemp)
+ "${@}" > "${output_file}" 2>&1
228
+ exit_code=$?
229
+ if [[ $exit_code -ne 0 ]]; then
230
+ local output
231
+ output=$(cat "${output_file}")
232
+ rm -f "${output_file}"
233
+ log_fatal "${err_msg}" "${output}"
234
return 1
- )
235
+ fi
236
237
}
238
239
function mirror {
0 commit comments