diff --git a/test/json_config/json_config.sh b/test/json_config/json_config.sh index 8575c8f05..1e4be1cfa 100755 --- a/test/json_config/json_config.sh +++ b/test/json_config/json_config.sh @@ -56,11 +56,11 @@ function tgt_check_notifications() { # remove ID event="${event_line%:*}" - ev_type=${event%*:} - ev_ctx=${event#:*} + ev_type=${event%:*} + ev_ctx=${event#*:} - ex_ev_type=${1%*:} - ex_ev_ctx=${1#:*} + ex_ev_type=${1%%:*} + ex_ev_ctx=${1#*:} last_event_id=${event_line##*:}