mirror of
				https://github.com/ScoopInstaller/Main.git
				synced 2025-11-04 07:41: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
 | 
			
		||||
    ",
 | 
			
		||||
    "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": {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user