Skip to content
Snippets Groups Projects
drush 301 B
#!/bin/sh

function setPermissions {
  chmod -R g+w .
}

FLAG=
if [[ "$1" == "-T" ]]; then
  FLAG=-T
  shift
fi
docker compose exec $FLAG ${LAKEDROPS_DEV_DC_OPTIONS} php drush "$@"
EC=$?

if [[ "$1" == "gen" ]]; then
  setPermissions
fi
if [[ "$1" == "generate" ]]; then
  setPermissions
fi

exit $EC