That will just wait for command to finish properly and then run yes.
command
yes
What you want to run is yes | command, so it spams the command with confirmations.
yes | command
That will just wait for
command
to finish properly and then runyes
.What you want to run is
yes | command
, so it spams the command with confirmations.