diff options
author | Markos Chandras <mchandras@suse.de> | 2018-04-12 08:35:15 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-04-12 08:35:15 +0100 |
commit | 8299421a82f682a351f9fb1be8b988dc07161317 (patch) | |
tree | 7eb9d090f10ddf7850ec42d175c220a611eecb8a /jjb/xci | |
parent | fbdd4518f772e71316548ecd16b94a879873f650 (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>
Diffstat (limited to 'jjb/xci')
-rwxr-xr-x | jjb/xci/xci-set-scenario.sh | 2 |
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 |