Have a quick question,
imagine that I have this code:
mkdir -p $INSTALLDIR
sudo apt-get install -y git clojure leiningen
git clone git://github.com/maltoe/storm-install.git
./storm-install/storm_install.sh all `hostname` $INSTALLDIR
And this script will ask, do you want to install additional packages, and I want to say yes
,
How to do this automatically?
Or may be there is a way to kinda answer yes to any question by default?
I not sure but i advice try:
echo yes | ./storm-install/storm_install.sh all `hostname` $INSTALLDIR
If you are running a script, try this:
yes "yes" | bash script.sh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With