From: Michael Fritch Date: Mon, 13 Jan 2020 21:51:41 +0000 (-0700) Subject: qa/workunits/cephadm/test_cephadm: need to add quotes for PYTHONS var X-Git-Tag: v15.1.0~217^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57f3dc87b114de54fee52bde05c9b6bf5e310a47;p=ceph-ci.git qa/workunits/cephadm/test_cephadm: need to add quotes for PYTHONS var 2020-01-13T10:48:13.374 INFO:tasks.workunit.client.0.smithi177.stderr:/home/ubuntu/cephtest/clone.client.0/qa/workunits/cephadm/test_cephadm.sh: line 46: [: python3: binary operator expected Signed-off-by: Michael Fritch --- diff --git a/qa/workunits/cephadm/test_cephadm.sh b/qa/workunits/cephadm/test_cephadm.sh index 7295319b202..bb8411fc6cd 100755 --- a/qa/workunits/cephadm/test_cephadm.sh +++ b/qa/workunits/cephadm/test_cephadm.sh @@ -43,7 +43,7 @@ if [ -z "$PYTHON_KLUDGE" ]; then which python3 && PYTHONS="$PYTHONS python3" which python2 && PYTHONS="$PYTHONS python2" echo "PYTHONS $PYTHONS" - if [ -z $PYTHONS ]; then + if [ -z "$PYTHONS" ]; then echo "No PYTHONS found!" exit 1 fi