all: /bin/bash -> /usr/bin/env bash (#23673)

I ran into issues setting up Sourcegraph on NixOS, because NixOS, like
some other distros, doesn't have a /bin/bash. We already use /usr/bin/env
in many of our scripts, so this improves consistency, too.
This commit is contained in:
Stefan Hengl 2021-08-06 12:02:43 +02:00 committed by GitHub
parent 6778dd414c
commit c61b0f1a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 14 additions and 14 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script is a wrapper around `universal-ctags`.
#

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"/../../migrations
set -e

View File

@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
psql -c "drop schema public cascade; create schema public;"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script determines the commit of sourcegraph/sourcegraph that is currently
# running on sourcegraph.com. The returned version has one of the following

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
psql -c "drop schema public cascade; create schema public;"
redis-cli -c flushall

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
- Open the **Management, disks, networking, and SSH keys** dropdown section and add the following in the **Startup script** field:
```
#!/bin/bash
#!/usr/bin/env bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e
export GF_PATHS_PROVISIONING=/sg_config_grafana/provisioning

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail
if [[ $# -le 0 ]]; then