Skip to content

Commit

Permalink
fix(build): use /usr/bin/env bash instead of /bin/bash (#1020)
Browse files Browse the repository at this point in the history
* fix: add to various other shell scripts
  • Loading branch information
Chickensoupwithrice authored Jul 29, 2023
1 parent c76dd10 commit d8502da
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/00-browsertrix-nginx-init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# remove old config
rm /etc/nginx/conf.d/default.conf
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-backend.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
CURR=$(dirname "${BASH_SOURCE[0]}")

docker build -t ${REGISTRY}webrecorder/browsertrix-backend:latest $CURR/../backend/
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-frontend.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
CURR=$(dirname "${BASH_SOURCE[0]}")

docker build --build-arg GIT_COMMIT_HASH="$(git rev-parse --short HEAD)" --build-arg GIT_BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)" --build-arg --load -t ${REGISTRY}webrecorder/browsertrix-frontend:latest $CURR/../frontend/
Expand Down
2 changes: 1 addition & 1 deletion test/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
2 changes: 1 addition & 1 deletion update-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

version=`cat version.txt`
jq ".version=\"$version\"" ./frontend/package.json > ./tmp-package.json
Expand Down

0 comments on commit d8502da

Please sign in to comment.