diff options
author | Roy Marples <roy@marples.name> | 2019-07-10 11:29:02 +0300 |
---|---|---|
committer | isaacs <nope@not.real> | 2019-07-11 01:10:29 +0300 |
commit | f52673fc7284e58af8c04533e82b76bf7add72cf (patch) | |
tree | 3b77b2040964734675ba22d66835b01bef994e6b /configure | |
parent | a2ea7f9ff64ae743d05fdbf7d46fb9afafa8aa6f (diff) |
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: https://github.com/npm/cli/pull/212
Close: #212
Reviewed-by: @isaacs
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # set configurations that will be "sticky" on this system, # surviving npm self-updates. |