I had to come up with this script to run two different drush versions:
nano /usr/local/bin/drush
and paste:
#!/bin/bash if [[ "$PWD" =~ domains/new.pksupplies.com ]]; then /usr/bin/php /home/pksupplies/domains/new.pksupplies.com/public_html/vendor/bin/drush.php $1 elif [[ "$PWD" =~ /home/pksupplies/public_html ]]; then /usr/bin/php /home/pksupplies/drush/drush $1 else echo "Current working directory does not have any Drupal installation." fi
- Log in to post comments