summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-04-12 08:35:15 +0100
committerMarkos Chandras <mchandras@suse.de>2018-04-12 08:35:15 +0100
commit8299421a82f682a351f9fb1be8b988dc07161317 (patch)
tree7eb9d090f10ddf7850ec42d175c220a611eecb8a
parentfbdd4518f772e71316548ecd16b94a879873f650 (diff)
jjb: xci: xci-set-scenario.sh: Fix conditional for default scenario
We only set default scenario if there is not one set already so we need to check if the array is empty. Change-Id: Ic5019fb68349adaf52d669aed43574bc5eaeddc3 Signed-off-by: Markos Chandras <mchandras@suse.de>
-rwxr-xr-xjjb/xci/xci-set-scenario.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/xci/xci-set-scenario.sh b/jjb/xci/xci-set-scenario.sh
index 8ef525496..c28093d27 100755
--- a/jjb/xci/xci-set-scenario.sh
+++ b/jjb/xci/xci-set-scenario.sh
@@ -114,7 +114,7 @@ function determine_generic_scenario() {
done
# For all other changes, we only need to set a default scenario if it's not set already
if git diff HEAD^..HEAD --name-only | grep -q -v 'xci/installer\|xci/scenario'; then
- [[ ${#DEPLOY_SCENARIO[@]} -gt 0 ]] && DEPLOY_SCENARIO[${#DEPLOY_SCENARIO[@]}]='os-nosdn-nofeature'
+ [[ ${#DEPLOY_SCENARIO[@]} -eq 0 ]] && DEPLOY_SCENARIO[${#DEPLOY_SCENARIO[@]}]='os-nosdn-nofeature'
fi
# extract releng-xci sha