Fix duplicate

This commit is contained in:
2023-11-13 12:41:35 +01:00
parent d07c178edf
commit 43a3566eaa

View File

@@ -80,6 +80,9 @@ function InstallZip {
}
$targetPath = $subFolder
}
if (Test-Path -Path (Join-Path $targetPath $app) -PathType Container) {
Remove-Item -Path (Join-Path $targetPath $app) -Recurse -Force
}
Expand-Archive -Path (Join-Path $tmpPath $zip) -DestinationPath $targetPath -Force
if (-not $zipName.Equals($app) -and (-not (Test-Path -Path (Join-Path $targetPath $app) -PathType Container))) {
Start-Sleep -s 2