Skip to content

Commit

Permalink
Fix quoting command result inside test (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: DOMjudge team <[email protected]>
  • Loading branch information
meisterT and DOMjudge team authored May 6, 2024
1 parent d810c60 commit dfd3d91
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ get_field()
check_status()
{
local sql_info="$(printf '%s\n' "$@")"
[ $(get_field 'Seconds_Behind_Master' "$sql_info") = '0' ] || return 1
[ $(get_field 'Slave_SQL_Running' "$sql_info") = 'Yes' ] || return 1
[ $(get_field 'Last_SQL_Errno' "$sql_info") = '0' ] || return 1
[ "$(get_field 'Seconds_Behind_Master' "$sql_info")" = '0' ] || return 1
[ "$(get_field 'Slave_SQL_Running' "$sql_info")" = 'Yes' ] || return 1
[ "$(get_field 'Last_SQL_Errno' "$sql_info")" = '0' ] || return 1
return 0
}

Expand Down

0 comments on commit dfd3d91

Please sign in to comment.