From 0529b16387e0c9d9f171d81b91d8d7a01025b0e4 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Mon, 9 Apr 2018 16:27:16 +0200 Subject: [PATCH] Powershell script is now process in ExecCommand() --- cleanW10.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }