dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
681 stars 66 forks source link

`curl https://nim-lang.org/choosenim/init.sh -sSf | sh -y` doesn't work; what's a 1 liner no-prompt alternative? #229

Closed timotheecour closed 2 years ago

timotheecour commented 3 years ago

curl https://nim-lang.org/choosenim/init.sh -sSf | sh -y doesn't work

is there a 1-liner simple alternative to:

curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
rm init.sh

? or is this the best one can do:

(curl https://nim-lang.org/choosenim/init.sh -sSf > /tmp/init.sh; sh /tmp/init.sh -y; rm /tmp/init.sh)

(avoiding init.sh which is a very generic name that overrite unrelated things)

dom96 commented 2 years ago

That is the best you can do, although I wonder why the standard 1 line doesn't work for you.