Skip to content

Commit 2844ef7

Browse files
authored
Merge pull request #132 from itk-dev/hotfix/call-drush-with-php-spscifically
Hotfix/call drush with php spscifically
2 parents 002b41f + ca8a908 commit 2844ef7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/itkdev-docker-compose

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,10 @@ EOF
828828
if [ -d $docker_compose_dir/web ]; then
829829
root=/app/web
830830
fi
831-
if [ -e $docker_compose_dir/vendor/bin/drush ]; then
832-
docker_compose exec phpfpm php /app/vendor/bin/drush --root=$root "$@"
831+
if [ -e $docker_compose_dir/vendor/bin/drush.php ]; then
832+
docker_compose exec phpfpm php /app/vendor/bin/drush.php --root=$root "$@"
833+
elif [ -e $docker_compose_dir/vendor/bin/drush ]; then
834+
docker_compose exec phpfpm /app/vendor/bin/drush --root=$root "$@"
833835
else
834836
docker_compose run --rm drush --root=$root "$@"
835837
fi

0 commit comments

Comments
 (0)