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.
2 parents 38070b9 + 717ebda commit f7537cfCopy full SHA for f7537cf
packages/npm-packages/ruby-wasm-emscripten/build-package.sh
@@ -18,7 +18,7 @@ find_compatible_node() {
18
# Find `node` executable (>= 15) in PATH
19
IFS=':' read -ra dirs <<< "$PATH"
20
for dir in "${dirs[@]}"; do
21
- if [ -x "$dir/node" ]; then
+ if [ -f "$dir/node" ] && [ -x "$dir/node" ]; then
22
node_version=$("$dir/node" --version)
23
if [ "${node_version:1:2}" -ge 15 ]; then
24
echo "$dir/node"
0 commit comments