Experimental cross OS command for #1083 [skip ci]

This commit is contained in:
James Cole 2018-01-02 20:08:56 +01:00
parent cdeabaaf9a
commit 30f64af55f
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -99,7 +99,7 @@
},
"scripts": {
"pre-install-cmd": [
"if [ -z ${DYNO+x} ]; then echo Not in Heroku environment.; else php -r \"file_exists('.env') || copy('.env.heroku', '.env');\"; fi"
"php -r \"if (!(getenv('DYNO'))===false){file_exists('.env') || copy('.env.heroku', '.env');}else{echo 'Not in Heroku environment\n';}\""
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""