Fix duplicate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user