Skip to content
Permalink
Browse files

rget/cmd: check unchecked error

  • Loading branch information
shawnps committed Aug 30, 2019
1 parent a8a084a commit 30b1f033d6f7f76963daaa4c16a15064f168d0b1
Showing with 4 additions and 0 deletions.
  1. +4 −0 rget/cmd/root.go
@@ -133,6 +133,10 @@ func get(cmd *cobra.Command, args []string) {

// Step 1: Download the SHA256SUMS that is correct for the URL
prefix, err := rgetwellknown.SumPrefix(durl)
if err != nil {
fmt.Printf("%s\n", err)
os.Exit(1)
}
sumsURL := prefix + "SHA256SUMS"
fmt.Printf("downloading sums: %v\n", sumsURL)
response, err := http.Get(sumsURL)

0 comments on commit 30b1f03

Please sign in to comment.
You can’t perform that action at this time.