From 2227b926dfb2bfd116eb20b3391103fc6bbdb66a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 4 Sep 2014 20:19:03 +0200 Subject: [PATCH] stp: Change comparison operator bash shows an error message if one of the values is empty as it is trying to do an integer comparison. --- src/functions/functions.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/functions.stp b/src/functions/functions.stp index 4195ad6e..8fcd281f 100644 --- a/src/functions/functions.stp +++ b/src/functions/functions.stp @@ -483,7 +483,7 @@ function stp_port_set_cost() { local cost="${3}" local old_cost="$(stp_port_get_cost "${bridge}" "${port}")" - if [ "${cost}" -eq "${old_cost}" ]; then + if [ "${cost}" = "${old_cost}" ]; then return ${EXIT_OK} fi -- 2.47.3