Skip to content

Commit

Permalink
htmc-cgi-ws fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro-Salerno committed Oct 17, 2024
1 parent e3a9807 commit 01d51c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cgi-ws/cgi-ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ import (
)

func download(filepath string, url string) {
if (exists(filepath)) {
fmt.Print("Ignoring downlaod of <")
fmt.Print(url)
fmt.Print("> because ")
fmt.Print(filepath)
fmt.Println(" already exists")
return
}

fmt.Print("Downloading <")
fmt.Print(url)
fmt.Print("> to ")
Expand Down

0 comments on commit 01d51c9

Please sign in to comment.