changes check for src
This commit is contained in:
parent
6abfcffc70
commit
9ad30acd96
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ $result = New-Object psobject @{
|
||||||
If ($params.src) {
|
If ($params.src) {
|
||||||
$src = $params.src.toString()
|
$src = $params.src.toString()
|
||||||
|
|
||||||
If (-Not (Test-Path -Path $src -PathType Leaf -Or Test-Path -Path $src -PathType Container)) {
|
If (-Not (Test-Path -Path $src)) {
|
||||||
Fail-Json $result "$src is not a valid file or directory on the host"
|
Fail-Json $result "$src file or directory does not exist on the host"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Else {
|
Else {
|
||||||
|
|
Loading…
Reference in a new issue