fix skipIf
This commit is contained in:
@@ -68,9 +68,9 @@ function InstallZip {
|
||||
[string] $exe,
|
||||
[string] $app,
|
||||
[bool] $createSubfolder = $false
|
||||
[string] $skipIf
|
||||
[string] $skipIf = $false
|
||||
)
|
||||
if (-not (Test-Path -Path $skipIf -PathType Container)) {
|
||||
if (-not (Test-Path -Path $skipIf -PathType Container) -and $skipIf -ne $false) {
|
||||
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
||||
Write-Host "Installing $zipName..."
|
||||
$targetPath = $env:ProgramFiles
|
||||
|
||||
Reference in New Issue
Block a user