Skip to content

Commit dfd3d91

Browse files
meisterTDOMjudge team
and
DOMjudge team
authored
Fix quoting command result inside test (#141)
Co-authored-by: DOMjudge team <[email protected]>
1 parent d810c60 commit dfd3d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provision-contest/ansible/roles/mysql_replication/templates/setup-replication.sh.j2

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ get_field()
126126
check_status()
127127
{
128128
local sql_info="$(printf '%s\n' "$@")"
129-
[ $(get_field 'Seconds_Behind_Master' "$sql_info") = '0' ] || return 1
130-
[ $(get_field 'Slave_SQL_Running' "$sql_info") = 'Yes' ] || return 1
131-
[ $(get_field 'Last_SQL_Errno' "$sql_info") = '0' ] || return 1
129+
[ "$(get_field 'Seconds_Behind_Master' "$sql_info")" = '0' ] || return 1
130+
[ "$(get_field 'Slave_SQL_Running' "$sql_info")" = 'Yes' ] || return 1
131+
[ "$(get_field 'Last_SQL_Errno' "$sql_info")" = '0' ] || return 1
132132
return 0
133133
}
134134

0 commit comments

Comments
 (0)