diff --git a/cleanW10.ps1 b/cleanW10.ps1 index 2a9edb4..357bca3 100755 --- a/cleanW10.ps1 +++ b/cleanW10.ps1 @@ -593,7 +593,7 @@ function ExecCommand { $args = $params.arguments.Replace("##mod_path##", $script:current_module_path) Write-Host -NoNewline "`tExecute : $path : " $path = Invoke-Expression """$($path)""" - if ( -not (Test-Path $path) -or -not $path -eq "powershell" ) { + if ( -not (Test-Path $path) -and -not $path -eq "powershell" ) { Write-Host -ForegroundColor Yellow "File not found" return }