Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions remotefs/posixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ func (s *PosixFS) ChownTreeInt(name string, uid, gid int) error {
// and falls back to wget. Returns a descriptive error if neither is available.
func (s *PosixFS) DownloadURL(url, dst string) error {
if _, err := s.LookPath("curl"); err == nil {
if err := s.Exec(sh.Command("curl", "-sSLf", "-o", dst, "--", url)); err != nil {
if err := s.Exec(sh.Command("curl", "-C -", "-sSLf", "-o", dst, "--", url)); err != nil {
Comment thread
bturmann marked this conversation as resolved.
Outdated
return fmt.Errorf("download %s: %w", url, err)
}
return nil
}
if _, err := s.LookPath("wget"); err == nil {
if err := s.Exec(sh.Command("wget", "-qO", dst, "--", url)); err != nil {
if err := s.Exec(sh.Command("wget", "-c", "-qO", dst, "--", url)); err != nil {
return fmt.Errorf("download %s: %w", url, err)
}
return nil
Expand Down
Loading