Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-07-10 11:29:02 +0300
committerisaacs <nope@not.real>2019-07-11 01:10:29 +0300
commitf52673fc7284e58af8c04533e82b76bf7add72cf (patch)
tree3b77b2040964734675ba22d66835b01bef994e6b /configure
parenta2ea7f9ff64ae743d05fdbf7d46fb9afafa8aa6f (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-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index b13c8d0d7..f177f43a3 100755
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# set configurations that will be "sticky" on this system,
# surviving npm self-updates.