Apex: fixes issue with detecting proper gate scenario 03/28403/1
authorTim Rozet <trozet@redhat.com>
Fri, 10 Feb 2017 05:01:33 +0000 (00:01 -0500)
committerTim Rozet <trozet@redhat.com>
Fri, 10 Feb 2017 05:01:33 +0000 (00:01 -0500)
Change-Id: I5aaf203f3db5078e462007c78aa9ff13d102c70c
Signed-off-by: Tim Rozet <trozet@redhat.com>
jjb/apex/apex-deploy.sh

index 790d2a3..b68225f 100755 (executable)
@@ -62,7 +62,7 @@ fi
 if [ -z "$DEPLOY_SCENARIO" ]; then
   echo "Deploy scenario not set!"
   exit 1
-elif [ "$DEPLOY_SCENARIO" == *gate* ]; then
+elif [[ "$DEPLOY_SCENARIO" == *gate* ]]; then
   echo "Detecting Gating scenario..."
   if [ -z "$GERRIT_EVENT_COMMENT_TEXT" ]; then
     echo "ERROR: Gate job triggered without comment!"