diff --git a/bin/post-upgrade b/bin/post-upgrade index 7edf84914..2f2504866 100755 --- a/bin/post-upgrade +++ b/bin/post-upgrade @@ -6,7 +6,7 @@ printf 'Do you want to proceed with the upgrade? (y/N)? ' read -r answer if [ "$answer" != "${answer#[Yy]}" ]; then # Retrieve prod or dev from .env.local.php file - ENV=$(grep -oP "'APP_ENV' => '\K[^']+" .env.local.php) + ENV=$(grep -oP "'APP_ENV' => '\K[^']+" "$BIN_DIR/../.env.local.php") if [[ "$ENV" == "dev" ]]; then # Development echo -e "INFO: Environment detected: Development\n"