Skip to content

Commit e55c176

Browse files
committed
err: remove any leftovers from older package versions
Otherwise, when upgrading from older version, the final shim may point to the older err.exe (which older package version unpacked to the Err subdirectory).
1 parent 365701e commit e55c176

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

err/tools/chocolateyInstall.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
Checksum = '88739EC82BA16A0B4A3C83C1DD2FCA6336AD8E2A1E5F1238C085B1E86AB8834A'
77
}
88
Get-ChocolateyWebFile @arguments
9+
10+
# remove any leftovers from older package versions
11+
Remove-Item -Path "$Env:ChocolateyPackageFolder\Err" -Recurse -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)