We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c182258 + b371668 commit 934e829Copy full SHA for 934e829
install.ps1
@@ -40,7 +40,7 @@ try {
40
41
tar -xzf $TarGzPath -C $TempDir
42
43
- if (-not (Test-Path $InstallDir)) {
+ if (-not (Test-Path -LiteralPath $InstallDir)) {
44
New-Item -ItemType Directory -Path $InstallDir -Force | Out-Null
45
}
46
@@ -62,7 +62,11 @@ try {
62
Write-Host ""
63
} finally {
64
# Cleanup
65
- if (Test-Path $TempDir) {
66
- Remove-Item -Path $TempDir -Recurse -Force -ErrorAction SilentlyContinue
+ if (Test-Path -LiteralPath $TempDir) {
+ try {
67
+ Remove-Item -LiteralPath $TempDir -Recurse -Force -ErrorAction Stop
68
+ } catch {
69
+ Write-Host "Warning: couldn't clean up temporary folder: $TempDir" -ForegroundColor Yellow
70
+ }
71
72
0 commit comments