From 2a108ef94f980b71ef8c404fb0bb1e2bac6a1b79 Mon Sep 17 00:00:00 2001 From: ppound Date: Thu, 3 Apr 2025 09:55:15 -0300 Subject: [PATCH] added the ldrush script provided by Charles --- ldrush | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ldrush diff --git a/ldrush b/ldrush new file mode 100755 index 0000000..f88d4e1 --- /dev/null +++ b/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 +