Skip to content

Commit

Permalink
fix: use universally portable shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
janl committed Apr 29, 2024
1 parent 0297c6a commit bb10785
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bin/build-node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

# don't bother doing this in GHA because it's already been built
if [ -z "$GITHUB_REPOSITORY" ]; then
Expand Down
2 changes: 1 addition & 1 deletion bin/install-jekyll.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

if ! command -v bundler >/dev/null 2>&1; then
echo "bundler is not installed. You need to do: gem install bundler"
Expand Down
2 changes: 1 addition & 1 deletion bin/publish-packages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

publish_packages () {
local root_dir="$PWD"
Expand Down
2 changes: 1 addition & 1 deletion bin/publish-site.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

# Build the website
BUILD=1 npm run build-site
Expand Down
2 changes: 1 addition & 1 deletion bin/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

if [ -n "$DRY_RUN" ]; then
echo "Doing a dry run release..."
Expand Down
2 changes: 1 addition & 1 deletion bin/repeat-perf-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/usr/bin/env -S bash -eu

scriptName="$(basename "$0")"
log() { echo "[$scriptName] $*"; }
Expand Down
2 changes: 1 addition & 1 deletion bin/run-dev.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

node ./bin/build-pouchdb.js
npm run build-test
Expand Down
2 changes: 1 addition & 1 deletion bin/run-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e
shopt -s nullglob

cleanup() {
Expand Down
2 changes: 1 addition & 1 deletion bin/test-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

COVERAGE=1 npm test
2 changes: 1 addition & 1 deletion bin/test-node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

: "${TIMEOUT:=5000}"
: "${REPORTER:="spec"}"
Expand Down
2 changes: 1 addition & 1 deletion bin/test-webpack.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

#
# Build PouchDB with Webpack instead of Browserify, and test that.
Expand Down
2 changes: 1 addition & 1 deletion bin/verify-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

# Verify various aspects of the build to make sure everything was
# built correctly.
Expand Down
2 changes: 1 addition & 1 deletion bin/verify-bundle-size.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env -S bash -e

# Max size in bytes that we find acceptable.
# We might have to change this later.
Expand Down
2 changes: 1 addition & 1 deletion bin/wait-for-couch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/usr/bin/env -S bash -eu

maxWait="${1:-0}"

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/deps/get-postfixed-pouchdb-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/usr/bin/env -S bash -eu

# Download a pouchdb production build for testing inter-version migrations in
# tests/integration/browser.migration.js
Expand Down

0 comments on commit bb10785

Please sign in to comment.