https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
6 lines
218 B
C
6 lines
218 B
C
// We override isatty to help 'automate' installers.
|
|
|
|
// Some installers (mojoinstall) have a stdio GUI that refuses to run if you
|
|
// feed it a file on stdin. This should help that.
|
|
|
|
int isatty(int fd) { return 1; }
|