diff options
author | Janos Gyerik <janos.gyerik@gmail.com> | 2016-05-11 17:47:26 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-05-11 17:47:26 +0200 |
commit | da2796a083e9a2d14092e468139e0c67386eae66 (patch) | |
tree | 1875f1af34ea9afc4fb03012201eee7ba35f6205 /cix.sh | |
parent | 87a609a4c529fc25c89c425dc11a2cb49ef3fbf8 (diff) | |
download | sonarqube-da2796a083e9a2d14092e468139e0c67386eae66.tar.gz sonarqube-da2796a083e9a2d14092e468139e0c67386eae66.zip |
Minor Bash improvements (#951)
* set exec bit on .sh files where it was not
* replace legacy `...` with $(...)
* use here-document instead of many echos
Diffstat (limited to 'cix.sh')
-rwxr-xr-x | cix.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -6,20 +6,20 @@ set -euo pipefail case "$RUN_ACTIVITY" in run-db-unit-tests-*) - DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-db-unit-tests-//g"` + DB_ENGINE=$(echo $RUN_ACTIVITY | sed "s/run-db-unit-tests-//g") ./run-db-unit-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties" ;; run-db-integration-tests-*) - DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 1` - CATEGORY=`echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 2` + DB_ENGINE=$(echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 1) + CATEGORY=$(echo $RUN_ACTIVITY | sed "s/run-db-integration-tests-//g" | cut -d \- -f 2) ./run-integration-tests.sh "${CATEGORY}" "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties" ;; run-integration-tests-*) - CATEGORY=`echo $RUN_ACTIVITY | sed "s/run-integration-tests-//g"` + CATEGORY=$(echo $RUN_ACTIVITY | sed "s/run-integration-tests-//g") ./run-integration-tests.sh "${CATEGORY}" "http://infra.internal.sonarsource.com/jenkins/orch-embedded.properties" ;; @@ -33,7 +33,7 @@ case "$RUN_ACTIVITY" in ;; run-upgrade-tests-*) - DB_ENGINE=`echo $RUN_ACTIVITY | sed "s/run-upgrade-tests-//g"` + DB_ENGINE=$(echo $RUN_ACTIVITY | sed "s/run-upgrade-tests-//g") ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties" ;; |