diff options
author | 2022-07-09 13:23:20 -0300 | |
---|---|---|
committer | 2022-07-09 18:28:32 -0700 | |
commit | 118c1349183f66736572d03ff6847b0fd465b5ad (patch) | |
tree | 3c11f4d86353cb1ea90b2cd5940f494c78a0ce2c | |
parent | 85dbb9cc9280d633c6eb815bf9115cb1a57bb510 (diff) | |
download | bun-118c1349183f66736572d03ff6847b0fd465b5ad.tar.gz bun-118c1349183f66736572d03ff6847b0fd465b5ad.tar.zst bun-118c1349183f66736572d03ff6847b0fd465b5ad.zip |
update bash references to work in non-fhs compliant distros
Signed-off-by: lucasew <lucas59356@gmail.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | bench/ffi/plus100/download-napi-plus100.sh | 2 | ||||
-rw-r--r-- | bench/hot-module-reloading/css-stress-test/run.sh | 2 | ||||
-rw-r--r-- | bench/sqlite/download-northwind.sh | 2 | ||||
-rw-r--r-- | misctools/find-unused-zig.sh | 2 | ||||
-rw-r--r-- | misctools/generate-tests-file.sh | 2 | ||||
-rw-r--r-- | src/cli/install.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-create-next.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-create-react.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-dev-index-html.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-dev.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-install-lockfile-status.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-install-utf8.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-install.sh | 2 | ||||
-rw-r--r-- | test/apps/bun-run-check.sh | 2 | ||||
-rw-r--r-- | zig-build/release.sh | 2 |
16 files changed, 16 insertions, 16 deletions
@@ -1,4 +1,4 @@ -SHELL := /bin/bash # Use bash syntax to be consistent +SHELL := $(shell which bash) # Use bash syntax to be consistent OS_NAME := $(shell uname -s | tr '[:upper:]' '[:lower:]') ARCH_NAME_RAW := $(shell uname -m) diff --git a/bench/ffi/plus100/download-napi-plus100.sh b/bench/ffi/plus100/download-napi-plus100.sh index 431fa88b3..6fff674c6 100644 --- a/bench/ffi/plus100/download-napi-plus100.sh +++ b/bench/ffi/plus100/download-napi-plus100.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash rm -rf plus100-napi git clone https://github.com/Jarred-Sumner/napi-plus100 plus100-napi --depth=1 diff --git a/bench/hot-module-reloading/css-stress-test/run.sh b/bench/hot-module-reloading/css-stress-test/run.sh index a30da5a0f..285b4f60d 100644 --- a/bench/hot-module-reloading/css-stress-test/run.sh +++ b/bench/hot-module-reloading/css-stress-test/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Running next at 24ms" PROJECT=next SLEEP_INTERVAL=24 make generate & diff --git a/bench/sqlite/download-northwind.sh b/bench/sqlite/download-northwind.sh index 5fc523a14..a703ac876 100644 --- a/bench/sqlite/download-northwind.sh +++ b/bench/sqlite/download-northwind.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail rm -rf Northwind_large.sqlite.zip diff --git a/misctools/find-unused-zig.sh b/misctools/find-unused-zig.sh index 78c1f09e8..882e56bd5 100644 --- a/misctools/find-unused-zig.sh +++ b/misctools/find-unused-zig.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash rg "@import\(\"(.*\.zig)\"\)" src -r "\$1" --only-matching -I | xargs basename | sort | uniq > /tmp/imported-names.txt find src -iname "*.zig" | xargs basename | sort | uniq > /tmp/all-names.txt diff --git a/misctools/generate-tests-file.sh b/misctools/generate-tests-file.sh index eaae47a98..fcc05d8df 100644 --- a/misctools/generate-tests-file.sh +++ b/misctools/generate-tests-file.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash cd src rg -l "^test " --type zig | sed -e 's/\(.*\)/@import\(\".\/\1"\);/' | sed '/schema/d' | sed '/deps/d' > /tmp/tests.zig diff --git a/src/cli/install.sh b/src/cli/install.sh index 57d10e581..269513295 100644 --- a/src/cli/install.sh +++ b/src/cli/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Reset Color_Off='' diff --git a/test/apps/bun-create-next.sh b/test/apps/bun-create-next.sh index 110351d97..eb523d223 100644 --- a/test/apps/bun-create-next.sh +++ b/test/apps/bun-create-next.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-create-react.sh b/test/apps/bun-create-react.sh index e903b3f65..2997eb7b1 100644 --- a/test/apps/bun-create-react.sh +++ b/test/apps/bun-create-react.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-dev-index-html.sh b/test/apps/bun-dev-index-html.sh index 2cabb798b..77891f0c7 100644 --- a/test/apps/bun-dev-index-html.sh +++ b/test/apps/bun-dev-index-html.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-dev.sh b/test/apps/bun-dev.sh index 485edd69a..77fb75be8 100644 --- a/test/apps/bun-dev.sh +++ b/test/apps/bun-dev.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-install-lockfile-status.sh b/test/apps/bun-install-lockfile-status.sh index de8a4a8f2..5e168b8e2 100644 --- a/test/apps/bun-install-lockfile-status.sh +++ b/test/apps/bun-install-lockfile-status.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-install-utf8.sh b/test/apps/bun-install-utf8.sh index 263eade6a..e7eaab93f 100644 --- a/test/apps/bun-install-utf8.sh +++ b/test/apps/bun-install-utf8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-install.sh b/test/apps/bun-install.sh index adc69fec3..c705a6b37 100644 --- a/test/apps/bun-install.sh +++ b/test/apps/bun-install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/test/apps/bun-run-check.sh b/test/apps/bun-run-check.sh index decfb2896..096d80385 100644 --- a/test/apps/bun-run-check.sh +++ b/test/apps/bun-run-check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail diff --git a/zig-build/release.sh b/zig-build/release.sh index a3bd566ab..7cf8dfdb8 100644 --- a/zig-build/release.sh +++ b/zig-build/release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail |