denoland / deno_install

Deno Binary Installer
https://deno.land/
MIT License
966 stars 179 forks source link

fix: handle stdin when piping to sh #296

Closed nathanwhit closed 3 weeks ago

nathanwhit commented 3 weeks ago

When you run the install script piped to sh, stdin isn't interactive, so it can't be used for interactive prompts (and so the shell setup script just bails out).

Instead, set up stdin as /dev/tty if necessary.