From: Sébastien Lesaint Date: Wed, 30 May 2018 14:02:57 +0000 (+0200) Subject: [scripts] use a more portable bash shebang X-Git-Tag: 7.5~1015 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41df35438631f365e434ca918b210733dcc78297;p=sonarqube.git [scripts] use a more portable bash shebang --- diff --git a/enable-organizations.sh b/enable-organizations.sh index a671d0bf6d6..571028483c7 100755 --- a/enable-organizations.sh +++ b/enable-organizations.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # the user "admin" becomes root and can create organizations diff --git a/run-db-unit-tests.sh b/run-db-unit-tests.sh index 6a3d7eceb9e..022592c213e 100755 --- a/run-db-unit-tests.sh +++ b/run-db-unit-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail ORCHESTRATOR_CONFIG_URL=$1 diff --git a/run-integration-tests.sh b/run-integration-tests.sh index 3cc8fb45cb0..476782962c4 100755 --- a/run-integration-tests.sh +++ b/run-integration-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run integration tests. SonarQube must be already built in order to # make the ZIP file available for tests. diff --git a/run-perf-tests.sh b/run-perf-tests.sh index 8f0597565a6..6c710d64a78 100755 --- a/run-perf-tests.sh +++ b/run-perf-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail echo 'Run performance tests' diff --git a/run-upgrade-tests.sh b/run-upgrade-tests.sh index d263cfa922e..a4c5d5961bc 100755 --- a/run-upgrade-tests.sh +++ b/run-upgrade-tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run upgrade tests. SonarQube must be already built in order to # make the ZIP file available for tests. @@ -17,4 +17,4 @@ shift 1 :tests:integrationTest \ -Dorchestrator.configUrl=$ORCHESTRATOR_CONFIG_URL \ -Dcategory=Upgrade \ - $* \ No newline at end of file + $* diff --git a/scripts/editions.sh b/scripts/editions.sh index 7913f8fec9a..238b4837e2f 100755 --- a/scripts/editions.sh +++ b/scripts/editions.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/scripts/generate_batch_reports.sh b/scripts/generate_batch_reports.sh index 00bcaf57b02..247fd1580f2 100755 --- a/scripts/generate_batch_reports.sh +++ b/scripts/generate_batch_reports.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################## # diff --git a/scripts/logs.sh b/scripts/logs.sh index 9b84391726b..90e64b3f175 100755 --- a/scripts/logs.sh +++ b/scripts/logs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################### # usage: logs.sh [ -e ARG ] [ -l ARG ] [ -n ARG ] # -e ARG: edition to run diff --git a/scripts/property_utils.sh b/scripts/property_utils.sh index 86ba82da643..57b94f23ee5 100755 --- a/scripts/property_utils.sh +++ b/scripts/property_utils.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################### # exposes library functions to modify properties in a property # diff --git a/scripts/replay_batch.sh b/scripts/replay_batch.sh index c1bd9825016..3b6ae873b9e 100755 --- a/scripts/replay_batch.sh +++ b/scripts/replay_batch.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/scripts/start.sh b/scripts/start.sh index 2a1cdfad70d..d6b6d7a7add 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################### # usage: start.sh [ -e ARG ] [ -p ARG ] [ -l ARG ] # -e ARG: edition to run diff --git a/scripts/stop.sh b/scripts/stop.sh index f5da7431230..c0dd72d8dbb 100755 --- a/scripts/stop.sh +++ b/scripts/stop.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ############################### # Shortcut to stop server. It must be already built. ############################### diff --git a/travis.sh b/travis.sh index a116940add0..a9542844056 100755 --- a/travis.sh +++ b/travis.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail ./.travis/setup_ramdisk.sh