Skip to content

Commit

Permalink
Small improvements for composer post install script
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed May 24, 2017
1 parent 17e9774 commit cc50421
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bucket/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
echo 'else { & php (join-path \"$psscriptroot\" \"composer.phar\") @args }' | out-file $dir\\composer.ps1 -append
",
"post_install": "
$och = \"$Env:APPDATA\\Composer\"
$och = \"$env:APPDATA\\Composer\"
if(Test-Path $och) {
cp -r -force $och\\* $persist_dir\\home\\
rd -r -force $och
Write-Host -F yellow \"Old 'COMPOSER_HOME' has been moved to '$persist_dir\\home'\"
Write-Host -F yellow \"Moving old 'COMPOSER_HOME' to '$persist_dir\\home'\"
Move-Item -Force \"$och\\*\" \"$persist_dir\\home\"
Remove-Item -Force \"$och\"
}
",
"suggest": {
Expand Down

0 comments on commit cc50421

Please sign in to comment.