From 9d03ab094a8035288b6f192d83b53c17aed4e517 Mon Sep 17 00:00:00 2001 From: Oliver Lee Date: Sun, 31 Aug 2025 21:36:06 -0500 Subject: [PATCH] replace `/bin/bash` shebang with `/usr/bin/env bash` This allows systems which don't have this location (e.g. NixOS) to run the scripts. --- tests/file_dependency_test.sh | 2 +- tests/scripts/archlinux_test.sh | 2 +- tests/scripts/centos_test.sh | 2 +- tests/scripts/debian_test.sh | 2 +- tests/scripts/fedora_test.sh | 2 +- tests/scripts/linux_sysroot_test.sh | 2 +- tests/scripts/run_docker_exec_test.sh | 2 +- tests/scripts/run_external_tests.sh | 2 +- tests/scripts/run_tests.sh | 2 +- tests/scripts/run_toolchain_tests.sh | 2 +- tests/scripts/run_xcompile_tests.sh | 2 +- tests/scripts/suse_leap_test.sh | 2 +- tests/scripts/suse_tumbleweed_test.sh | 2 +- tests/scripts/ubuntu_20_04_test.sh | 2 +- tests/scripts/ubuntu_22_04_test.sh | 2 +- toolchain/cc_wrapper.sh.tpl | 2 +- toolchain/osx_cc_wrapper.sh.tpl | 2 +- utils/llvm_checksums.sh | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/file_dependency_test.sh b/tests/file_dependency_test.sh index bf60e2bd..c2020e6e 100755 --- a/tests/file_dependency_test.sh +++ b/tests/file_dependency_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2022 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/archlinux_test.sh b/tests/scripts/archlinux_test.sh index dd3d4bf1..96e7d90e 100755 --- a/tests/scripts/archlinux_test.sh +++ b/tests/scripts/archlinux_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/centos_test.sh b/tests/scripts/centos_test.sh index c609f05f..067f2c3a 100755 --- a/tests/scripts/centos_test.sh +++ b/tests/scripts/centos_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/debian_test.sh b/tests/scripts/debian_test.sh index c0de9666..0b66de52 100755 --- a/tests/scripts/debian_test.sh +++ b/tests/scripts/debian_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/fedora_test.sh b/tests/scripts/fedora_test.sh index 1cc4cce5..acdfdb3e 100755 --- a/tests/scripts/fedora_test.sh +++ b/tests/scripts/fedora_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/linux_sysroot_test.sh b/tests/scripts/linux_sysroot_test.sh index a2935c24..d21767ca 100755 --- a/tests/scripts/linux_sysroot_test.sh +++ b/tests/scripts/linux_sysroot_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/run_docker_exec_test.sh b/tests/scripts/run_docker_exec_test.sh index fe582aad..606f1909 100755 --- a/tests/scripts/run_docker_exec_test.sh +++ b/tests/scripts/run_docker_exec_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2024 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/run_external_tests.sh b/tests/scripts/run_external_tests.sh index 46646924..9e388860 100755 --- a/tests/scripts/run_external_tests.sh +++ b/tests/scripts/run_external_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index abca1b20..da45805d 100755 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/run_toolchain_tests.sh b/tests/scripts/run_toolchain_tests.sh index 1bc7cac2..04c97a86 100755 --- a/tests/scripts/run_toolchain_tests.sh +++ b/tests/scripts/run_toolchain_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2018 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/run_xcompile_tests.sh b/tests/scripts/run_xcompile_tests.sh index 6f9c99cc..6380abd5 100755 --- a/tests/scripts/run_xcompile_tests.sh +++ b/tests/scripts/run_xcompile_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2021 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/suse_leap_test.sh b/tests/scripts/suse_leap_test.sh index 7ba31974..3f2c0da2 100755 --- a/tests/scripts/suse_leap_test.sh +++ b/tests/scripts/suse_leap_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2021 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/suse_tumbleweed_test.sh b/tests/scripts/suse_tumbleweed_test.sh index e5d6cd82..75b3b3a8 100755 --- a/tests/scripts/suse_tumbleweed_test.sh +++ b/tests/scripts/suse_tumbleweed_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2021 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/ubuntu_20_04_test.sh b/tests/scripts/ubuntu_20_04_test.sh index 38e6d20e..977bf352 100755 --- a/tests/scripts/ubuntu_20_04_test.sh +++ b/tests/scripts/ubuntu_20_04_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2020 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/scripts/ubuntu_22_04_test.sh b/tests/scripts/ubuntu_22_04_test.sh index f5341fd8..917eebc2 100755 --- a/tests/scripts/ubuntu_22_04_test.sh +++ b/tests/scripts/ubuntu_22_04_test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2020 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/toolchain/cc_wrapper.sh.tpl b/toolchain/cc_wrapper.sh.tpl index 8a23f121..75257641 100644 --- a/toolchain/cc_wrapper.sh.tpl +++ b/toolchain/cc_wrapper.sh.tpl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2021 The Bazel Authors. All rights reserved. # diff --git a/toolchain/osx_cc_wrapper.sh.tpl b/toolchain/osx_cc_wrapper.sh.tpl index 1ab90a05..5b30cdb4 100755 --- a/toolchain/osx_cc_wrapper.sh.tpl +++ b/toolchain/osx_cc_wrapper.sh.tpl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # Copyright 2015 The Bazel Authors. All rights reserved. # diff --git a/utils/llvm_checksums.sh b/utils/llvm_checksums.sh index 9e271285..a74e1051 100755 --- a/utils/llvm_checksums.sh +++ b/utils/llvm_checksums.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright 2022 The Bazel Authors. # # Licensed under the Apache License, Version 2.0 (the "License");