@cryptotaxi247 / netdata-1 / commits / e4c8f9578

invalid use of shell -eq with strings; fixes #3733

Costa Tsaousis (ktsaou) committed May 26, 2018 at 01:20 UTC e4c8f9578cacb444cc65cd6bd3f1fa39a6d93e5c
1 file changed +3 -3
plugins.d/alarm-notify.sh
+3 -3
@@ -1553,11 +1553,11 @@ send_syslog() {
1553 local priority='' message='' host='' port='' prefix=''
1554 local temp1='' temp2=''
1555
1556 - [ "${SEND_SYSLOG}" -eq "YES" ] || return 1
1556 + [ "${SEND_SYSLOG}" = "YES" ] || return 1
1557
1558 - if [ "${status}" -eq "CRITICAL" ] ; then
1558 + if [ "${status}" = "CRITICAL" ] ; then
1559 level='crit'
1560 - elif [ "${status}" -eq "WARNING" ] ; then
1560 + elif [ "${status}" = "WARNING" ] ; then
1561 level='warning'
1562 fi
1563