Jelajahi Sumber

Use curl for hash

bryan 2 tahun lalu
induk
melakukan
3da0d408ff
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      openwrtbuilder

+ 2 - 2
openwrtbuilder

@@ -374,10 +374,10 @@ getImageBuilder() {
         debug "Verifying checksums"
 
         if [[ -f $SHA256_FILE ]] && askOk "$SHA256_FILE exists. Re-download?"; then
-            if ! $dl_tool -o "$SHA256_FILE" "$SHA256_URL"; then
+            if ! curl -so "$SHA256_FILE" "$SHA256_URL"; then
                 debug "Failed to download checksum"
             fi
-        elif ! $dl_tool -o "$SHA256_FILE" "$SHA256_URL"; then
+        elif ! curl -so "$SHA256_FILE" "$SHA256_URL"; then
             debug "Failed to download checksum"
         fi