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

Codium
  • 123
  • 1
  • 10

1 Answers1

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.

duenni
  • 2,959
  • 1
  • 23
  • 38