From: Michael Tremer Date: Thu, 4 Sep 2014 18:19:03 +0000 (+0200) Subject: stp: Change comparison operator X-Git-Tag: 007~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2227b926dfb2bfd116eb20b3391103fc6bbdb66a;p=network.git 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. --- 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