Skip to content

Commit

Permalink
try to improve windows download
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Apr 28, 2020
1 parent 837cb45 commit 802b0ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions images/wget_windows.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package images

import "github.com/mhewedy/vermin/cmd"
import (
"fmt"
"github.com/mhewedy/vermin/cmd"
)

func wget(url string, file string) (string, error) {
return cmd.Execute("wget", url, "-o", file)
return cmd.Execute(fmt.Sprintf("(New-Object System.Net.WebClient).DownloadFile('%s', '%s')"), url, file)
}

0 comments on commit 802b0ca

Please sign in to comment.