add force parameter to win_get_url
This commit is contained in:
parent
9074aa4c93
commit
1730764531
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ Else {
|
|||
Fail-Json $result "missing required argument: dest"
|
||||
}
|
||||
|
||||
If (-not (Test-Path $dest)) {
|
||||
$force = Get-Attr -obj $params -name "force" "no"
|
||||
|
||||
If ($force -eq "yes" -or -not (Test-Path $dest)) {
|
||||
$client = New-Object System.Net.WebClient
|
||||
|
||||
Try {
|
||||
|
|
Loading…
Reference in a new issue