2 ms·
It's not that hard to use the tty command to see if it's an interactive shell and set the config appropriately. Bower should do that automatically.
by ars 11y ago
It's not that hard to use the tty command to see if it's an interactive shell and set the config appropriately. Bower should do that automatically.
- vog 11y agoBut this is yet another anti-pattern: Having different behaviour depending on whether it's an interactive shell or not. A big offender here is CURL, where this affects the verbosity during download. This is especially frustrating with regard to automation. 1. You type by hand, everything works. 2. You copy&paste into the command line, and everything works. 3. You run it from a script, and it behaves differently.