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"