Merge pull request #1648 from ilpianista/win_unzip-use-absolute-path
win_unzip: Use absolute path for src and dest
This commit is contained in:
commit
22074de5c0
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ $rm = ConvertTo-Bool (Get-AnsibleParam -obj $params -name "rm" -default "false")
|
|||
If ($ext -eq ".zip" -And $recurse -eq $false) {
|
||||
Try {
|
||||
$shell = New-Object -ComObject Shell.Application
|
||||
$zipPkg = $shell.NameSpace($src)
|
||||
$destPath = $shell.NameSpace($dest)
|
||||
$zipPkg = $shell.NameSpace([IO.Path]::GetFullPath($src))
|
||||
$destPath = $shell.NameSpace([IO.Path]::GetFullPath($dest))
|
||||
# 20 means do not display any dialog (4) and overwrite any file (16)
|
||||
$destPath.CopyHere($zipPkg.Items(), 20)
|
||||
$result.changed = $true
|
||||
|
|
Loading…
Reference in a new issue