Skip to content

Commit f52673f

Browse files
rsmarplesisaacs
authored and
isaacs
committedJul 10, 2019
build: use /usr/bin/env to load bash
On BSD platforms, there is a clear seperation between the OS and third party packages. Here, bash is a third party package so it won't be installed to /bin. FreeBSD: /usr/local/bin/bash NetBSD: /usr/pkg/bin/bash OpenBSD: /usr/ports/bin/bash As such, we need to use /usr/bin/env to launch these scripts. Credit: @rsmarples PR-URL: #212 Close: #212 Reviewed-by: @isaacs
1 parent a2ea7f9 commit f52673f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
 

‎configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# set configurations that will be "sticky" on this system,
44
# surviving npm self-updates.

‎scripts/clean-old.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# look for old 0.x cruft, and get rid of it.
44
# Should already be sitting in the npm folder.

‎scripts/dep-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
node . install --save $1@$2 &&\
33
node scripts/gen-dev-ignores.js &&\
44
git add node_modules package.json package-lock.json &&\

‎scripts/dev-dep-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
node . install --save --save-dev $1@$2 &&\
33
node scripts/gen-dev-ignores.js &&\
44
git add package.json package-lock.json &&\

‎scripts/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# script for creating a zip and tarball for inclusion in node
44

‎scripts/relocate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Change the cli shebang to point at the specified node
44
# Useful for when the program is moved around after install.

0 commit comments

Comments
 (0)
Please sign in to comment.