From 70cc5dc9921d2e8c4af89e922bc85e244ee6ac85 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 10 Mar 2008 10:37:36 +0100 Subject: [PATCH] Fixed display of action conditions. --- src/functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 22ba7a6..27c6133 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -229,8 +229,8 @@ run_actions() { check=$(echo "$line" | sed 's/ */ /g'| awk -F' ' '{print $1}') action=$(echo "$line" | sed 's/ */ /g'| awk -F' ' '{print $2}') checkmsg="" - [ "$test" != "true" ] && checkmsg="if '$test'" - if eval $test; then + [ "$check" != "true" ] && checkmsg="if '$check'" + if eval $check; then log "$(printf 'action %02d' $lineno) starting: '${action}' $checkmsg " eval $action log "$(printf 'action %02d' $lineno) finished: '${action}' $checkmsg" -- 1.7.10.4