Small improvements for composer post install script

This commit is contained in:
Richard Kuhnt 2017-05-24 18:54:37 +02:00
parent b736f1a750
commit a0a65b26bb

View File

@ -14,11 +14,11 @@
echo 'else { & php (join-path \"$psscriptroot\" \"composer.phar\") @args }' | out-file $dir\\composer.ps1 -append echo 'else { & php (join-path \"$psscriptroot\" \"composer.phar\") @args }' | out-file $dir\\composer.ps1 -append
", ",
"post_install": " "post_install": "
$och = \"$Env:APPDATA\\Composer\" $och = \"$env:APPDATA\\Composer\"
if(Test-Path $och) { if(Test-Path $och) {
cp -r -force $och\\* $persist_dir\\home\\ Write-Host -F yellow \"Moving old 'COMPOSER_HOME' to '$persist_dir\\home'\"
rd -r -force $och Move-Item -Force \"$och\\*\" \"$persist_dir\\home\"
Write-Host -F yellow \"Old 'COMPOSER_HOME' has been moved to '$persist_dir\\home'\" Remove-Item -Force \"$och\"
} }
", ",
"suggest": { "suggest": {