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

Installation failure with curl - stty: stdin isn't a terminal #36

Open
DataEnggNerd opened this issue Oct 17, 2024 · 2 comments
Open

Installation failure with curl - stty: stdin isn't a terminal #36

DataEnggNerd opened this issue Oct 17, 2024 · 2 comments

Comments

@DataEnggNerd
Copy link

While installing through curl -L yen.tushar.lol/install.sh | s the while loop for giving y|n is running infinitely.

Note: When I have cloned the shell script to local and executed, worked without a problem.

System details:

uname -a
Darwin Admins-Laptop.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:16:46 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8112 arm64

fish --version
fish, version 3.7.1

echo $TERM
xterm-256color

Error log

> curl -L yen.tushar.lol/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   166  100   166    0     0    181      0 --:--:-- --:--:-- --:--:--   181
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  3561  100  3561    0     0   1841      0  0:00:01  0:00:01 --:--:--     0
This script will automatically download and install yen for you.
Getting it from this url: https://github.com/tusharsadhwani/yen/releases/latest/download/yen-rs-aarch64-apple-darwin
The binary will be installed into '/Users/santhoshsolomon/.yen/bin'
######################################################################## 100.0%
######################################################################## 100.0%#=#=-#  #                              ######################################################################## 100.0%
######################################################################## 100.0%#=#=-#  #                              ######################################################################## 100.0%
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

Please answer [y]es or [n]o.
Install 'yen' in '/Users/santhoshsolomon/.config/fish/config.fish'? [y/n] stty: stdin isn't a terminal
stty: stdin isn't a terminal
stty: stdin isn't a terminal

# this just continues
@tusharsadhwani
Copy link
Owner

I faced this yesterday, so I think I can reproduce this and find out the root cause.

It worked just fine on my other, identical machine, which is weird.

@DataEnggNerd
Copy link
Author

Great, do let me know if you need any further information regarding this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants