Skip to content

Commit c61b0f1

Browse files
authored
all: /bin/bash -> /usr/bin/env bash (sourcegraph#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.
1 parent 6778dd4 commit c61b0f1

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

cmd/symbols/universal-ctags-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script is a wrapper around `universal-ctags`.
44
#

dev/check/docsite_redirects.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -eu -o pipefail
44

dev/db/add_migration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
cd "$(dirname "${BASH_SOURCE[0]}")"/../../migrations
44
set -e

dev/db/drop-local-database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
psql -c "drop schema public cascade; create schema public;"

dev/deployed-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This script determines the commit of sourcegraph/sourcegraph that is currently
44
# running on sourcegraph.com. The returned version has one of the following

dev/drop-entire-local-database-and-redis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
psql -c "drop schema public cascade; create schema public;"
44
redis-cli -c flushall

dev/phabricator/stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44
unset CDPATH

dev/src-expose/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -e
44

dev/zoekt/wrapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euf -o pipefail
44

doc/admin/install/docker/google_cloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This tutorial shows you how to deploy [single-container Sourcegraph with Docker]
1515
- Open the **Management, disks, networking, and SSH keys** dropdown section and add the following in the **Startup script** field:
1616

1717
```
18-
#!/bin/bash
18+
#!/usr/bin/env bash
1919
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2020
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
2121
sudo apt-get update

0 commit comments

Comments
 (0)