sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
6.15k stars 631 forks source link

Bug: Installation script fails with newline error #1293

Closed dheerajchand closed 6 months ago

dheerajchand commented 6 months ago

Bug report

  1. Opened terminal on M1 MBP, zsh
  2. Copied command from installation screen into terminal
  3. Executed
  4. Error obtained
 ~  curl -s "https://get.sdkman.io" | bash                 ✔  108  10:09:00
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!--# Id: internetaccess.html 285144 2021-06-16 05:02:06Z szhang -->'
 ~  zsh --version                                      0|2 ↵  109  10:09:29
zsh 5.9 (x86_64-apple-darwin23.0)
 ~ 

To reproduce

  1. Open terminal
  2. Paste command
  3. Execute

System info

  1. M1 MBP
  2. zsh 5.9 (x86_64-apple-darwin23.0
helpermethod commented 6 months ago

Hi @dheerajchand, do you have some security software like ZScaler installed on your system?

dheerajchand commented 6 months ago

Unfortunately, yes. It is a work laptop.

marc0der commented 6 months ago

In that case I'd say it's not a bug with our software. Closing this for now.

dheerajchand commented 6 months ago

Thanks for the insight! Is there any suggested workaround?

helpermethod commented 6 months ago

Thanks for the insight! Is there any suggested workaround?

Not that I am aware of.

marc0der commented 6 months ago

You'll be faced with this issue whenever you try to use curl, not just when using SDKMAN.