Skip to content

Prevent a warning in ruby-wasm-emscripten/build-package.sh #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

mame
Copy link
Member

@mame mame commented Jan 28, 2024

The PATH environment variable introduced emsdk has a directory named node, which caused the following error:

./build-package.sh: line 22: /home/runner/work/emirb/emirb/emsdk/node: Is a directory
./build-package.sh: line 23: [: : integer expression expected

This change checks the version of "$dir/node" only when it is a file, not a directory.

The PATH environment variable introduced emsdk has a directory named
`node`, which caused the following error:

```
./build-package.sh: line 22: /home/runner/work/emirb/emirb/emsdk/node: Is a directory
./build-package.sh: line 23: [: : integer expression expected
```

This change checks the version of "$dir/node" only when it is a file,
not a directory.
@kateinoigakukun kateinoigakukun merged commit f7537cf into ruby:main Jan 28, 2024
@mame mame deleted the prevent-warning-to-find-node branch January 28, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants