sclorg / spec2scl

MIT License
7 stars 7 forks source link

isatty check breaks scripts #28

Closed msimacek closed 7 years ago

msimacek commented 7 years ago

spec2scl -i foo.spec works in a terminal, but not in a scripts:

spec2scl: error: You must either specify specfile(s) or reading from stdin, not both.

That's due to checking whether stdin is a tty. Please don't make assumptions about stdin and remove the check.

irushchyshyn commented 7 years ago

Hi @msimacek ! Thanks for reporting the issue. The check was removed in within #30, could you please try it an let me know if it works for you?

msimacek commented 7 years ago

Seems to work now. Thanks!