Skip to content
Permalink
Browse files
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
  • Loading branch information
rsmarples authored and isaacs committed Jul 10, 2019
1 parent a2ea7f9 commit f52673fc7284e58af8c04533e82b76bf7add72cf
Showing 6 changed files with 6 additions and 6 deletions.
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# set configurations that will be "sticky" on this system,
# surviving npm self-updates.
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# look for old 0.x cruft, and get rid of it.
# Should already be sitting in the npm folder.
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
node . install --save $1@$2 &&\
node scripts/gen-dev-ignores.js &&\
git add node_modules package.json package-lock.json &&\
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
node . install --save --save-dev $1@$2 &&\
node scripts/gen-dev-ignores.js &&\
git add package.json package-lock.json &&\
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

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

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

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

0 comments on commit f52673f

Please sign in to comment.