/match-env-and-run

A simple bash script that can be used to execute commands if the environment matches

Primary LanguageShellMIT LicenseMIT

match-env-and-run

A simple bash script that can be used in conjunction with typical symfony setups to execute commands if the environment matches what is reported in the .env file.

Very handy if you want to chain various steps together or if you need to protected a specific environment from harm.

Example use

./match-env-and-run.sh dev "bin/console do:da:dr --force"