I'm writing a really basic bash script and want use drush dl to download the Drush extras add on.
drush dl drush_extras
But I need to check whether drush extras is installed before I try to install it (and then use it) because it prompts the following text.
Install location C:\cygwin64\home\USER/.drush/drush_extras already exists. Do you want to overwrite it? (y/n):
How do I determine whether a drush add on/plug in/module (not sure what you call it) exists? So I handle that use case?
I'm trying to automate configuration, starting with assigning blocks to regions, and I have to make it work on Windows (first) and Linux. So I'm using Cygwin and Drush on Windows. There's probably different approaches, but this seems OK.