replace shebang '/bin/bash' for '/usr/bin/env bash'
Allows better portability of bash scripting between Linux
distributions.
Change-Id: Ia0ec079581398bcffbf20bb8206860bcec0e6e7a
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
diff --git a/script/backup_external_repo.sh b/script/backup_external_repo.sh
index 78b36df..4226762 100755
--- a/script/backup_external_repo.sh
+++ b/script/backup_external_repo.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/build_bmcov.sh b/script/build_bmcov.sh
index 3923ab8..0ba1d29 100755
--- a/script/build_bmcov.sh
+++ b/script/build_bmcov.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
@@ -103,7 +103,7 @@
fi
# to be run on the user locally
cat <<EOF > "server.sh"
-#!/bin/bash
+#!/usr/bin/env bash
echo "Running server..."
type -a firefox || (echo "Please install Firefox..." && exit 1)
diff --git a/script/build_package.sh b/script/build_package.sh
index 6ed52b0..829b3ec 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/clone_repos.sh b/script/clone_repos.sh
index 8c7f33c..38e2eab 100755
--- a/script/clone_repos.sh
+++ b/script/clone_repos.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/coverity_wrapper.sh b/script/coverity_wrapper.sh
index 626232d..374e7fa 100644
--- a/script/coverity_wrapper.sh
+++ b/script/coverity_wrapper.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/download_linaro_release.sh b/script/download_linaro_release.sh
index 1829d6e..bed6596 100755
--- a/script/download_linaro_release.sh
+++ b/script/download_linaro_release.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/find_fragment_users.sh b/script/find_fragment_users.sh
index 8a35b93..95272e4 100755
--- a/script/find_fragment_users.sh
+++ b/script/find_fragment_users.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/gen_juno_linux_reboot_yaml.sh b/script/gen_juno_linux_reboot_yaml.sh
index f1254eb..9ca8523 100755
--- a/script/gen_juno_linux_reboot_yaml.sh
+++ b/script/gen_juno_linux_reboot_yaml.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/gen_juno_linux_yaml.sh b/script/gen_juno_linux_yaml.sh
index d7946de..5413806 100755
--- a/script/gen_juno_linux_yaml.sh
+++ b/script/gen_juno_linux_yaml.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/gen_juno_scp_tests_scmi_yaml.sh b/script/gen_juno_scp_tests_scmi_yaml.sh
index 2422ef5..a09907f 100755
--- a/script/gen_juno_scp_tests_scmi_yaml.sh
+++ b/script/gen_juno_scp_tests_scmi_yaml.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2020, Arm Limited. All rights reserved.
#
diff --git a/script/gen_juno_tftf_yaml.sh b/script/gen_juno_tftf_yaml.sh
index 2b0b7b6..1611001 100755
--- a/script/gen_juno_tftf_yaml.sh
+++ b/script/gen_juno_tftf_yaml.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/gen_merge_report.sh b/script/gen_merge_report.sh
index 431b37a..9967ed6 100644
--- a/script/gen_merge_report.sh
+++ b/script/gen_merge_report.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/id_tf_processes.sh b/script/id_tf_processes.sh
index 9c2b4f6..f3952b3 100755
--- a/script/id_tf_processes.sh
+++ b/script/id_tf_processes.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/make_stress_test_image.sh b/script/make_stress_test_image.sh
index 5defc9f..52b99f2 100755
--- a/script/make_stress_test_image.sh
+++ b/script/make_stress_test_image.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/parse_test.sh b/script/parse_test.sh
index 03e828b..5eb026f 100755
--- a/script/parse_test.sh
+++ b/script/parse_test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/run_local_ci.sh b/script/run_local_ci.sh
index 42fd99c..ce69876 100755
--- a/script/run_local_ci.sh
+++ b/script/run_local_ci.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/run_package.sh b/script/run_package.sh
index 8c1b57a..ec11737 100755
--- a/script/run_package.sh
+++ b/script/run_package.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/run_tools_through_valgrind.sh b/script/run_tools_through_valgrind.sh
index 47f8b11..290a6b5 100755
--- a/script/run_tools_through_valgrind.sh
+++ b/script/run_tools_through_valgrind.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/scan_build_wrapper.sh b/script/scan_build_wrapper.sh
index 5b52d5f..bae7a27 100644
--- a/script/scan_build_wrapper.sh
+++ b/script/scan_build_wrapper.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/delete_old_workspaces.sh b/script/scratch_scripts/delete_old_workspaces.sh
index d34873e..c5d2b95 100755
--- a/script/scratch_scripts/delete_old_workspaces.sh
+++ b/script/scratch_scripts/delete_old_workspaces.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/deploy_scratch.sh b/script/scratch_scripts/deploy_scratch.sh
index 0c39ab8..cfe612c 100755
--- a/script/scratch_scripts/deploy_scratch.sh
+++ b/script/scratch_scripts/deploy_scratch.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/fast-forward-master.sh b/script/scratch_scripts/fast-forward-master.sh
index 176712d..a05c8f0 100755
--- a/script/scratch_scripts/fast-forward-master.sh
+++ b/script/scratch_scripts/fast-forward-master.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2020, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone.sh b/script/scratch_scripts/initial_clone.sh
index 3f96e36..b8166f2 100755
--- a/script/scratch_scripts/initial_clone.sh
+++ b/script/scratch_scripts/initial_clone.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone_temp.sh b/script/scratch_scripts/initial_clone_temp.sh
index b0858bf..25ad576 100755
--- a/script/scratch_scripts/initial_clone_temp.sh
+++ b/script/scratch_scripts/initial_clone_temp.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone_v2.5.sh b/script/scratch_scripts/initial_clone_v2.5.sh
index 7c112d2..d7ed3f4 100755
--- a/script/scratch_scripts/initial_clone_v2.5.sh
+++ b/script/scratch_scripts/initial_clone_v2.5.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone_v2.6.sh b/script/scratch_scripts/initial_clone_v2.6.sh
index a7cb826..ebcfbd2 100755
--- a/script/scratch_scripts/initial_clone_v2.6.sh
+++ b/script/scratch_scripts/initial_clone_v2.6.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone_v2.sh b/script/scratch_scripts/initial_clone_v2.sh
index 29e996d..0036eae 100755
--- a/script/scratch_scripts/initial_clone_v2.sh
+++ b/script/scratch_scripts/initial_clone_v2.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/initial_clone_v3.sh b/script/scratch_scripts/initial_clone_v3.sh
index 5f4e3fc..a1f9e59 100755
--- a/script/scratch_scripts/initial_clone_v3.sh
+++ b/script/scratch_scripts/initial_clone_v3.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/post_build_setup.sh b/script/scratch_scripts/post_build_setup.sh
index 02741b3..1790b8c 100644
--- a/script/scratch_scripts/post_build_setup.sh
+++ b/script/scratch_scripts/post_build_setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/scratch_scripts/post_build_setup_v2.sh b/script/scratch_scripts/post_build_setup_v2.sh
index 9bf719a..2fd9dbe 100644
--- a/script/scratch_scripts/post_build_setup_v2.sh
+++ b/script/scratch_scripts/post_build_setup_v2.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/send_artefacts.sh b/script/send_artefacts.sh
index b9c90e4..463697a 100755
--- a/script/send_artefacts.sh
+++ b/script/send_artefacts.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-check-copyright.sh b/script/static-checks/static-checks-check-copyright.sh
index 837e721..e204dd6 100755
--- a/script/static-checks/static-checks-check-copyright.sh
+++ b/script/static-checks/static-checks-check-copyright.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-coding-style-entire-src-tree.sh b/script/static-checks/static-checks-coding-style-entire-src-tree.sh
index 1d066ae..3c808f0 100755
--- a/script/static-checks/static-checks-coding-style-entire-src-tree.sh
+++ b/script/static-checks/static-checks-coding-style-entire-src-tree.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-coding-style-line-endings.sh b/script/static-checks/static-checks-coding-style-line-endings.sh
index 5442f7d..570b6b5 100755
--- a/script/static-checks/static-checks-coding-style-line-endings.sh
+++ b/script/static-checks/static-checks-coding-style-line-endings.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-coding-style.sh b/script/static-checks/static-checks-coding-style.sh
index 5341e34..377646e 100755
--- a/script/static-checks/static-checks-coding-style.sh
+++ b/script/static-checks/static-checks-coding-style.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-cppcheck.sh b/script/static-checks/static-checks-cppcheck.sh
index 40d161f..bb87440 100755
--- a/script/static-checks/static-checks-cppcheck.sh
+++ b/script/static-checks/static-checks-cppcheck.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks-include-order.sh b/script/static-checks/static-checks-include-order.sh
index 0f2b46c..f5c1d78 100755
--- a/script/static-checks/static-checks-include-order.sh
+++ b/script/static-checks/static-checks-include-order.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/static-checks/static-checks.sh b/script/static-checks/static-checks.sh
index 882e9e1..321c06e 100755
--- a/script/static-checks/static-checks.sh
+++ b/script/static-checks/static-checks.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
diff --git a/script/test_definitions.sh b/script/test_definitions.sh
index ec03c89..7e26118 100644
--- a/script/test_definitions.sh
+++ b/script/test_definitions.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
diff --git a/script/tf-coverity/common-def.sh b/script/tf-coverity/common-def.sh
index 746e9bc..ea54d18 100644
--- a/script/tf-coverity/common-def.sh
+++ b/script/tf-coverity/common-def.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#