-
jurgenhaas authored
Add support for -T option for drush commands (must be first option) to disable TTY for capturing output
jurgenhaas authoredAdd support for -T option for drush commands (must be first option) to disable TTY for capturing output
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