Bump version to 1.9.5

Switch to fixed getcomposer.org links

Add composer fallback
This commit is contained in:
Shivam Mathur
2020-08-16 07:26:49 +05:30
parent 5593bd4bd3
commit f7fb800623
11 changed files with 871 additions and 1536 deletions
+1 -2
View File
@@ -145,8 +145,6 @@ Function Add-Tool() {
Param (
[Parameter(Position = 0, Mandatory = $true)]
[ValidateNotNull()]
[ValidateLength(1, [int]::MaxValue)]
[string]
$url,
[Parameter(Position = 1, Mandatory = $true)]
[ValidateNotNull()]
@@ -157,6 +155,7 @@ Function Add-Tool() {
if (Test-Path $php_dir\$tool) {
Remove-Item $php_dir\$tool
}
if($url.Count -gt 1) { $url = $url[0] }
if ($tool -eq "symfony") {
Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $php_dir\$tool.exe
Add-ToProfile $current_profile $tool "New-Alias $tool $php_dir\$tool.exe" > $null 2>&1