mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 08:11:20 +00:00
Small improvements for composer post install script
This commit is contained in:
parent
b736f1a750
commit
a0a65b26bb
@ -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": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user