Open jgrund opened 2 years ago
Probably it could have a code path for the case when stdin is not a tty.
@jgrund I used expect
and it works
#!/usr/local/bin/expect -f
set timeout -1
spawn ./tests.sh
match_max 100000
expect -exact "Are you sure you want to delete the project key: CITS? \[y/n\] \[?25l"
send -- "y"
expect eof
My biggest problem was finding the ending "[?25l"
Hi,
When wanting to bypass a confirmation in an automated way, it does not appear possible to use the
yes
command, I.E:Will just hang