What it says on the tin; I have a Bash script (this is an excerpt) that calls a Bash script inside a container:
echo "Step a1"
docker exec wbdocker-wikibase-1 //bin//bash -c "bash /var/www/html/wbdocker_internal_wrapper.sh"
echo "Step a2"
The Bash script called (wbdocker_internal_wrapper.sh
) begins with:
echo "step1"
apt-get -y update
echo "step2"
What should print is:
Step a1
step1
step2
Step a2
But instead what prints is:
Step a1
step1
Step a2
And step2
never prints. Is there any way to prevent moving to “Step a2” until the entirety of wbdocker_internal_wrapper.sh
is finished?