I want to run a command inside my bash script with or without a -v flag depending on if the environment variable $VERBOSE is defined. Something like this:
-v
This seems to work:
composer dump-autoload $([ "$env" = "production" ] && printf '--classmap-authoritative')