X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=shell%2Fjenkins-configure-clouds.sh;h=405ecedfe56bd9acb0f846580c953488d687b096;hb=refs%2Fchanges%2F24%2F62824%2F3;hp=8f7b3a857878b0ab1618f59e6d22f44dc8ce5ffa;hpb=55afab878df8cfead43ac4b19e5958ee52737627;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-configure-clouds.sh b/shell/jenkins-configure-clouds.sh index 8f7b3a85..405ecedf 100644 --- a/shell/jenkins-configure-clouds.sh +++ b/shell/jenkins-configure-clouds.sh @@ -53,11 +53,11 @@ testversion() { local current_val="$1" operator="$2" test_value="$3" awk -vv1="$current_val" -vv2="$test_value" 'BEGIN { split(v1, a, /\:/); - if (a[2] == '$test_value') { - exit (a[2] == '$test_value') ? 0 : 1 + if (a[2] == '"$test_value"') { + exit (a[2] == '"$test_value"') ? 0 : 1 } else { - exit (a[2] '$operator' '$test_value') ? 0 : 1 + exit (a[2] '"$operator"' '"$test_value"') ? 0 : 1 } }' }