mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
standardise the powershell FileUtils (#34969)
This commit is contained in:
@@ -56,11 +56,11 @@ $result = @{
|
||||
cmd = $raw_command_line
|
||||
}
|
||||
|
||||
if ($creates -and $(Test-FilePath -path $creates)) {
|
||||
if ($creates -and $(Test-AnsiblePath -Path $creates)) {
|
||||
Exit-Json @{msg="skipped, since $creates exists";cmd=$raw_command_line;changed=$false;skipped=$true;rc=0}
|
||||
}
|
||||
|
||||
if ($removes -and -not $(Test-FilePath -path $removes)) {
|
||||
if ($removes -and -not $(Test-AnsiblePath -Path $removes)) {
|
||||
Exit-Json @{msg="skipped, since $removes does not exist";cmd=$raw_command_line;changed=$false;skipped=$true;rc=0}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user