Files
Iristyle 5796a381b7 (chore ST3 package control): release 2.0.0 final
- Remove dependency on Git
 - Add dependency on JsonHelpers.ps1
 - Properly remove any previously Git installed package control
 - Install for ST3 the same way we install for ST3
2014-09-15 11:36:50 -07:00

21 lines
481 B
PowerShell

function Get-CurrentDirectory
{
$thisName = $MyInvocation.MyCommand.Name
[IO.Path]::GetDirectoryName((Get-Content function:$thisName).File)
}
try {
$package = 'SublimeText3.PackageControl'
$current = Get-CurrentDirectory
. (Join-Path $current 'JsonHelpers.ps1')
. (Join-Path $current 'SublimeHelpers.ps1')
Install-SublimePackageControl -Version 3
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}