1

I've added drush command to environment variable. When I go to cmd and run drush command all works ok.

But wheh I'm trying to call drush command inside script file, eg:

#!/bin/bash

drush si --site-name=SiteName --account-pass=pass -y

an error is raising:

drush: command not found

  • In newest version of GIT for Win all works ok – Codium Oct 16 '15 at 13:37
0

I'm guessing you run some alternate shell like msysgit on windows. Seems possible that you added this command to msysgit's $PATH but the script is executed with the windows builtin cmd which is not aware of your alternate shells $PATH.

  • No, all commands (directly in command prompts or in script file) are executing from windows command line tools (cmd) – Codium Oct 15 '15 at 9:35
  • #!/bin/bash in a windows (batch)script? – duenni Oct 15 '15 at 9:37
  • without it I get same error. – Codium Oct 15 '15 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.