Im trying to download git using a .sh file for vagrant but when it gives me the prompt to continue, it aborts automatically. This is the contents of my .sh file:
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git
git clone https://git.openstack.org/openstack-dev/devstack
How do I tell it to input yes at the correct time. I tried to do: echo "yes" after the install git line but that's too late
-y
/--yes
/--assume-yes
flag forapt-get
you're looking for? – Kusalananda Aug 30 '18 at 20:26