This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Description
If you have an error like "unsynched entries" none of the cases that set ex_stat are hit. This means that you then have an unquoted ${ex_stat} as there is on line 162 (the last line shown here):
# exit with warning if errors
if [ -n "$errors" ]; then
sep='; '
msg=$(printf "${sep}%s" "${errors[@]}")
msg=${msg:${#sep}}
if [ ${ex_stat} == "CRITICAL_stat" ]; then
then the variable is just empty and the warning is produced. I think it just needs to be quoted to fix this to stop the warning from being produced, e.g.:
if [ "${ex_stat}" == "CRITICAL_stat" ]; then