1

I have a bash script and when I run it, I'm asked the question:

"You are about to create a sites/default/files directory and create a sites/default/settings.php file and DROP all tables in your 'geo_test' database. Do you want to continue? (y/n)"

How do I answer 'y' automatically?

#!/bin/bash
cd /Applications/MAMP/htdocs
#sudo rm -rf geoslate
drush make distro.make geoslate --working-copy --no-gitinfofile
cd geoslate
drush si geoslate --db-url='mysql://root:root@localhost/geo_test' --site-name=Geoslate
Laf
  • 7,965
  • 4
  • 37
  • 52
weaveoftheride
  • 4,092
  • 8
  • 35
  • 53

1 Answers1

2

Adding the -y option should to it:

drush si geoslate -y --db-url='mysql://root:root@localhost/geo_test' --site-name=Geoslate
Clive
  • 36,918
  • 8
  • 87
  • 113