Syntax error in DelFile()

This commit is contained in:
Yorick Barbanneau 2018-03-23 15:50:34 +01:00
parent 157f3b9c5d
commit fc212fa7ce

View file

@ -395,7 +395,7 @@ function DelFile {
Write-Host -ForegroundColor Yellow "not found" Write-Host -ForegroundColor Yellow "not found"
return return
} }
$command = "Remove-Item $path -ErrorAction SilentlyContinue -Force -Path `"$path`"" $command = "Remove-Item -ErrorAction SilentlyContinue -Force -Path `"$path`""
if ( $params.ContainsKey('recurse') -and $params.recurse -eq $true ) { if ( $params.ContainsKey('recurse') -and $params.recurse -eq $true ) {
$command += "-Recurse" $command += "-Recurse"
} }