Commit 1649a5de authored by Mattia Rizzolo's avatar Mattia Rizzolo

also send stderr to the log file

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 14317a65
...@@ -27,7 +27,7 @@ run_script() ( ...@@ -27,7 +27,7 @@ run_script() (
# Execute the deploy script # Execute the deploy script
# Capture the output and print it only if the script fails # Capture the output and print it only if the script fails
"$script" > "$output" "$script" > "$output" 2>&1
ret=$? ret=$?
if [[ "$ret" -ne 0 ]]; then if [[ "$ret" -ne 0 ]]; then
echo "Deploy script $(basename "${script}") failed!" echo "Deploy script $(basename "${script}") failed!"
......
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