fix skipIf
This commit is contained in:
@@ -68,9 +68,9 @@ function InstallZip {
|
|||||||
[string] $exe,
|
[string] $exe,
|
||||||
[string] $app,
|
[string] $app,
|
||||||
[bool] $createSubfolder = $false
|
[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)
|
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
|
||||||
Write-Host "Installing $zipName..."
|
Write-Host "Installing $zipName..."
|
||||||
$targetPath = $env:ProgramFiles
|
$targetPath = $env:ProgramFiles
|
||||||
|
|||||||
Reference in New Issue
Block a user