blob: 98e308661a99837e924eddae6168877e1d0940e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-third__party_js_cfworker_build.sh,v 1.1 2022/05/14 10:30:26 tnn Exp $
shell portability
--- third_party/js/cfworker/build.sh.orig 2022-04-28 22:03:47.000000000 +0000
+++ third_party/js/cfworker/build.sh
@@ -4,9 +4,10 @@ set -euo pipefail
# Path to mach relative to /third_party/js/cfworker
MACH=$(realpath "../../../mach")
-if [[ $(uname -a) == *MSYS* ]]; then
- MACH="python ${MACH}"
-fi
+# uname -a is not a good idea here. Someone could have MSYS in the hostname.
+#if uname -a | grep MSYS > /dev/null; then
+# MACH="python ${MACH}"
+#fi
NODE="${MACH} node"
NPM="${MACH} npm"
|