diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2016-07-26 11:06:10 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-08-18 10:01:25 +0200 |
commit | cc95453e800ca4b1537e8e1aa9a58fab8c4a1f03 (patch) | |
tree | 564cd154e595de1e7475c135ac9e631cdb795d67 /cix.sh | |
parent | b66e224d79d66086164655b9030bf6dffb2f32a2 (diff) | |
download | sonarqube-cc95453e800ca4b1537e8e1aa9a58fab8c4a1f03.tar.gz sonarqube-cc95453e800ca4b1537e8e1aa9a58fab8c4a1f03.zip |
Remove extraneous echo calls and rely on bash here strings instead.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
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=$(sed "s/run-db-unit-tests-//g" <<< $RUN_ACTIVITY) ./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=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 1) + CATEGORY=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | 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=$(sed "s/run-integration-tests-//g" <<< $RUN_ACTIVITY) ./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=$(sed "s/run-upgrade-tests-//g" <<< $RUN_ACTIVITY) ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties" ;; |