Some scripts to help with drush path in general and our islandarchives2 multisite install.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
407 B

#!/bin/bash
#You can use this script as a shortcut to ../../../vendor/bin/drush as long as you are in a drupal web directory.
#so instead of ../../../vendor/bin/drush updb you can do ldrush updb
#this script should be available on the path.
curDir=$(/bin/pwd)/
dPath=$(echo $curDir |sed 's:/web/.*::')/vendor/bin/drush
if [ -f "$dPath" ]; then
$dPath $@
else
echo "Couldn't find drush"
fi