Shell script that makes installing Genie a breeze.
bash <(curl -fsSL https://zit.ec/genie)
- MacOS, Linux, Windows (WSL2)
- Node.js (>= v18)
Q: Why don't you use curl -fsSL https://zit.ec/genie | bash
instead of bash <(curl -fsSL https://zit.ec/genie)
?
A: The shell script uses the read
command for reading user input. By piping the script, we will close the stdin and therefore we cannot read user input anymore. A workaround is to spawn a new bash process which will substitute the initial one. You can read more about it here.