Browse Source

added the ldrush script provided by Charles

main
ppound 8 months ago
parent
commit
2a108ef94f
  1. 13
      ldrush

13
ldrush

@ -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…
Cancel
Save