Files
ChocolateyPackages/SublimeText2.PackageControl/tools/ChocolateyInstall.ps1
Iristyle 49cb47cb9d refactor(sublime pkg control): move install script
- Will need this for other packages to more safely
    ensure package control is setup
2013-04-04 09:05:20 -04:00

20 lines
427 B
PowerShell

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