Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Use = for [ ... ] tests instead of bash's == #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nagios/bin/pmp-check-mysql-replication-delay
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ main() {
else
NOW_FUNC='UNIX_TIMESTAMP(UTC_TIMESTAMP)'
fi
if [ "${OPT_SRVID}" == "MASTER" ]; then
if [ "${OPT_SRVID}" = "MASTER" ]; then
if [ "${MYSQL_CONN}" = 0 ]; then
OPT_SRVID=$(awk '/Master_Server_Id/{print $2}' "${TEMP_SLAVEDATA}")
fi
Expand Down
4 changes: 2 additions & 2 deletions nagios/bin/pmp-check-mysql-ts-count
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ main() {
exit 1
fi
fi
if [ "${OPT_TARGET}" == "kills" ]; then
if [ "${OPT_TARGET}" = "kills" ]; then
OPT_TABLE="${OPT_TABLE:-percona.kill_log}"
OPT_TIMESTAMP="${OPT_TIMESTAMP:-timestamp}"
elif [ "${OPT_TARGET}" == "fkerrors" ]; then
elif [ "${OPT_TARGET}" = "fkerrors" ]; then
OPT_TABLE="${OPT_TABLE:-percona.foreign_key_errors}"
OPT_TIMESTAMP="${OPT_TIMESTAMP:-ts}"
else
Expand Down