1 changed files with 13 additions and 0 deletions
@ -0,0 +1,13 @@
|
||||
#!/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 |
||||
|
||||
Loading…
Reference in new issue