Reputation: 3579
I have a current bash script. echo
will display all results when cmd has been finished. But I want in real time see output coming line by line when script is in execution process. How can I achieve that?
#!/bin/bash
echo $(docker build -t goapp -f deployments/dev/Dockerfile .)
Upvotes: 0
Views: 126
Reputation: 530823
docker
already prints its output to standard output; that's why you can capture it with $(...)
and pass it as arguments to echo
. Just run docker
:
#!/bin/bash
docker build -t goal -f deployments/dev/Dockerfile .
Upvotes: 2