From 3a5ef36a2a68c2cc444ce0cfa5f2c49492b31240 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Thu, 20 Jun 2024 11:42:32 +0200 Subject: [PATCH] fix skipIf --- setupApps.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setupApps.ps1 b/setupApps.ps1 index e7409e3..27324a9 100644 --- a/setupApps.ps1 +++ b/setupApps.ps1 @@ -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