feat: Leiningen 2.2.0
- Automating Clojure projects without setting your hair on fire
This commit is contained in:
22
Leiningen/tools/chocolateyUninstall.ps1
Normal file
22
Leiningen/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
$package = 'Leiningen'
|
||||
$version = '2.2.0'
|
||||
|
||||
try {
|
||||
$installDir = Join-Path $Env:USERPROFILE '.lein'
|
||||
if (Test-Path $installDir)
|
||||
{
|
||||
Remove-Item $installDir -Recurse -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
$batDir = Join-Path $Env:ChocolateyInstall 'bin'
|
||||
$lein = Join-Path $batDir 'lein.bat'
|
||||
if (Test-Path $lein)
|
||||
{
|
||||
Remove-Item $lein -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user