Skip to content
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

Install script error (tiny) #1159

Closed
nuke-web3 opened this issue Jul 23, 2022 · 0 comments · Fixed by #1320
Closed

Install script error (tiny) #1159

nuke-web3 opened this issue Jul 23, 2022 · 0 comments · Fixed by #1320

Comments

@nuke-web3
Copy link

nuke-web3 commented Jul 23, 2022

$ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

sh: 139: [: x86_64: unexpected operator
info: downloading wasm-pack
info: successfully installed wasm-pack to `.../.cargo/bin/wasm-pack`

if [ "$_cputype" == "aarch64" ] && [ "$_ostype" == "apple-darwin" ]; then

On Pop!_OS 22.04 LTS

No error in bash , but the curl uses sh (rightly so IMHO)

astraw added a commit to colorimetry/colorimetry-net that referenced this issue Sep 24, 2022
astraw added a commit to astraw/bui-backend that referenced this issue Sep 29, 2022
lucashorward added a commit to lucashorward/wasm-pack that referenced this issue Aug 7, 2023
- Fixed error on line 139 - "==" was being used, whereas sh expects a "=" (and we do this correctly throughout the rest of the file). See https://www.shellcheck.net/wiki/SC3014 for more.
- Changed the use of backticks to the use of `$()` as specified in https://www.shellcheck.net/wiki/SC2006
- Changed the use of `-a` to `&&` as specified in https://www.shellcheck.net/wiki/SC2166

Closes rustwasm#1159
Closes rustwasm#1217
Closes rustwasm#1283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant