Commit de10d49a authored by Mattia Rizzolo's avatar Mattia Rizzolo

report the correct return code

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent fc7b41b7
...@@ -33,7 +33,7 @@ run_script() ( ...@@ -33,7 +33,7 @@ run_script() (
"$script" > "$output" 2>&1 || ret=$? "$script" > "$output" 2>&1 || ret=$?
if [[ "${ret-0}" -ne 0 ]]; then if [[ "${ret-0}" -ne 0 ]]; then
echo "Deploy script $(basename "${script}") failed!" echo "Deploy script $(basename "${script}") failed!"
echo "Return code: $?" echo "Return code: $ret"
echo "Script output" echo "Script output"
echo "=============" echo "============="
cat "${output}" cat "${output}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment