Syntax error in DelFile()
This commit is contained in:
parent
157f3b9c5d
commit
fc212fa7ce
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue