Skip to content

Firefly III: a personal finances manager

Better check for Heroku [skip ci]

James Colec3af8fefde9b
diff --git a/composer.json b/composer.json
index 3e4d165411..a25430d6e0 100644
--- a/composer.json
+++ b/composer.json
@@ -98,7 +98,7 @@
},
"scripts": {
"pre-install-cmd": [
- "if DYNO -gt 0; then @php -r \"file_exists('.env') || copy('.env.heroku', '.env');\"; else echo Not in Heroku environment.; fi"
+ "if [ -z ${DYNO+x} ]; then @php -r \"file_exists('.env') || copy('.env.heroku', '.env');\"; else echo Not in Heroku environment.; fi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""