shell: /bin/bash -> /usr/bin/env bash (#53000)

Changes interpreter in shell scripts to not hard-code bash location, for
portability

## Test plan

Previously `DOCKER_BAZEL=true IMAGE=strum355/frontend VERSION=5.0.5 ./enterprise/cmd/frontend/build.sh` wouldn't work for me, now it does : )
This commit is contained in:
Noah S-C 2023-06-06 13:51:55 +01:00 committed by GitHub
parent 8ad2601caa
commit db025265ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
run() {

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
VERSION="v13.0.0-8"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Path to the schema_descriptions tool
generate_bin="$1"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ "${CI:-false}" == "true" ]]; then
if [[ "$1" == "build" || "$1" == "test" || "$1" == "run" ]]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script is called by test.sh to install an up-to-date
# version of src-cli as required by the codeintel-qa pipeline. The target binary

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# In Wolfi, unix_socket_directories defaults to /tmp. In previous Alpine images, this defaulted to /var/run/postgres.
# /tmp may not be writable, so any existing postgresql.conf configs that predate the Wolfi migration should be patched to update this setting.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# In Wolfi, unix_socket_directories defaults to /tmp. In previous Alpine images, this defaulted to /var/run/postgres.
# /tmp may not be writable, so any existing postgresql.conf configs that predate the Wolfi migration should be patched to update this setting.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Convenience script for https://buildkite.com/docs/agent/v3/cli-annotate
# If you are writing a pipeline step DO NOT use this script directly - instead, use

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
function capture {
(

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
xml_file=$1
xml=$(cat "$xml_file")

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euf -o pipefail

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euf -o pipefail

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -u

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Path to the monitoring tool
monitoring_bin="$1"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu
source ./testing/tools/integration_runner.sh || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu
source ./testing/tools/integration_runner.sh || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eu
source ./testing/tools/integration_runner.sh || exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e