We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53646df commit fee7f2bCopy full SHA for fee7f2b
overrides/path/node
@@ -1,8 +1,12 @@
1
-#!/usr/bin/env bash
+#!/bin/sh
2
+# ^ Note that we use sh, not bash, for alpine compatibility
3
set -e
4
5
# Exclude ourselves from PATH, find the real node, then reset PATH
-PATH="${PATH//`dirname "$0"`:/}"
6
+PATH="$(printf '%s\n' "$PATH" | sed "s:$(dirname "$0")\:::g")"
7
+ # ^ This is made more complicated by sh, since we can't use variable expansion, but this
8
+ # should be equivalent. We use : as a safe sed delim here, though it is confusing!
9
+
10
real_node=`command -v node`
11
PATH="`dirname "$0"`:$PATH"
12
0 commit comments