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'