diff --git a/scripts/template.sh b/scripts/template.sh index 6577a26..f800880 100755 --- a/scripts/template.sh +++ b/scripts/template.sh @@ -105,6 +105,7 @@ function traperror() { local linecallfunc="$3" local command="$4" local funcstack="$5" + IFS=" " for e in ${err[@]}; do if test -n "$e" -a "$e" != "0"; then error "line $line - command '$command' exited with status: $e (${err[@]})"