From 2936f538aac85a6916ae790cc7e144813086dd6f Mon Sep 17 00:00:00 2001 From: Arun Muthusamy Date: Tue, 27 Jul 2021 09:46:16 +0200 Subject: [PATCH] Bug_5569: FIx, unknown operand & argument expected warnings --- qosmngr/files/lib/qos/broadcom.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qosmngr/files/lib/qos/broadcom.sh b/qosmngr/files/lib/qos/broadcom.sh index bdce42c4e..695e6f246 100755 --- a/qosmngr/files/lib/qos/broadcom.sh +++ b/qosmngr/files/lib/qos/broadcom.sh @@ -52,7 +52,7 @@ configure_precedence_to_file() { line="$2" order_file="$3" - if [ $order == $PREV_ORDER ]; then + if [ $order == "$PREV_ORDER" ]; then queue_id=${line#*_} val=${CURR_ORDER}_${queue_id} echo $val >> $order_file @@ -122,7 +122,7 @@ handle_queue() { fi # This is to get the qid per interface. - if [ $INTF_NAME == $ifname ]; then + if [ "$INTF_NAME" == $ifname ]; then Q_COUNT=$((Q_COUNT + 1)) else Q_COUNT='0'