From 7e87dc3cbfa2d00867349b68947411f43b8763ea Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Fri, 5 Mar 2021 15:02:44 -0800 Subject: [PATCH] correct compairison condition in bash Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index f7c8b322..9aa33ca3 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -8,8 +8,8 @@ HOMEPATH=$(realpath ~) NUM_STA=4 FILESIZE1=$(echo ${#1}) FILESIZE2=$(echo ${#2}) -if (( $FILESIZE1>0 )); then - if (( $FILESIZE2>0 )); then +if [[ $FILESIZE1 -gt 0 ]]; then + if [[ $FILESIZE2 -gt 0 ]]; then SSID_USED=$1 PASSWD_USED=$2 SECURITY=$3 @@ -195,7 +195,7 @@ function echo_print() { function run_test() { for i in "${testCommands[@]}"; do - if (( ${mgrlen}>0 )); then + if [[ $mgrlen -gt 0 ]]; then ./scenario.py --load FACTORY_DFLT --mgr ${MGR} else ./scenario.py --load FACTORY_DFLT