X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=27c6133647bcbd0d4fdd249433dce2e9b2eca0b5;hb=70cc5dc9921d2e8c4af89e922bc85e244ee6ac85;hp=22ba7a6346d640a86e3b9dda127d12de9fb9f98d;hpb=d232a0e17c16cae3f3dace2017545cbf8fd6e977;p=carnet-upgrade.git 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"