From 3c3b2e981e31178e682f89cda707829d2f16506f Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Thu, 5 May 2011 18:09:22 +0200 Subject: [PATCH] feature #575: bug in exec_and_log --- src/mad/sh/scripts_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mad/sh/scripts_common.sh b/src/mad/sh/scripts_common.sh index 3d59047550..2af7a3105c 100755 --- a/src/mad/sh/scripts_common.sh +++ b/src/mad/sh/scripts_common.sh @@ -94,7 +94,7 @@ function exec_and_log if [ "x$code" != "x0" ]; then log_error "Command \"$1\" failed." log_error "$output" - if [ -n "$message" ]; then + if [ -z "$message" ]; then error_message "$output" else error_message "$message"