Skip to content

Commit a068a3d

Browse files
committed
fix: switch shebang to /usr/bin/env bash
This makes bootstrap.sh easier to use on NixOS among others.
1 parent 703b63a commit a068a3d

11 files changed

Lines changed: 14 additions & 12 deletions

File tree

bootstrap.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 -o errexit
44
set -o nounset

docker/bin/bootstrap.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
# shellcheck disable=SC2181
33

44
# set -o xtrace

docker/keycloak/prepare.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
KEYCLOAK_REALM_CONFIG="/opt/keycloak/data/import/Example-realm.json"
44
PROTOCOL="${PROTOCOL:-http}"

docs/customizing/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following hooks are currently available:
1212
## Example for after-install.sh
1313

1414
```bash
15-
#!/bin/bash
15+
#!/usr/bin/env bash
1616

1717
echo 'Create some users'
1818
export OC_PASS=mycustomuser
@@ -22,7 +22,7 @@ occ user:add --password-from-env mycustomuser
2222
## Example for before-start.sh
2323

2424
```bash
25-
#!/bin/bash
25+
#!/usr/bin/env bash
2626

2727
echo 'Always disable the firstrunwizard'
2828
occ app:disable firstrunwizard

scripts/download-full-history.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash -e
1+
#!/usr/bin/env bash
2+
3+
set -e
24

35
isShallow() {
46
# Reference: https://stackoverflow.com/a/37533086

scripts/functions.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
function get_docker_compose_command() {
44
docker-compose version >/dev/null 2>/dev/null && DCC='docker-compose'

scripts/mysql.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
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

scripts/occ.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
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

scripts/php-mod-config

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
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

scripts/update-certs

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
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)

0 commit comments

Comments
 (0)