| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,16 +42,17 @@ cleanup () { | |||
| 42 | 42 | trap cleanup INT TERM EXIT | |
| 43 | 43 | ||
| 44 | 44 | NGHTTP3_REF="v$NEW_VERSION" | |
| 45 | - NGHTTP3_ZIP="nghttp3-$NEW_VERSION" | ||
| 45 | + ARCHIVE_BASENAME="nghttp3-${NEW_VERSION}" | ||
| 46 | 46 | ||
| 47 | 47 | cd "$WORKSPACE" | |
| 48 | 48 | ||
| 49 | 49 | echo "Fetching nghttp3 source archive..." | |
| 50 | - curl -sL -o "$NGHTTP3_ZIP.zip" "https://github.com/ngtcp2/nghttp3/archive/refs/tags/$NGHTTP3_REF.zip" | ||
| 51 | - log_and_verify_sha256sum "nghttp3" "$NGHTTP3_ZIP.zip" | ||
| 52 | - unzip "$NGHTTP3_ZIP.zip" | ||
| 53 | - rm "$NGHTTP3_ZIP.zip" | ||
| 54 | - mv "$NGHTTP3_ZIP" nghttp3 | ||
| 50 | + curl -sL -o "$ARCHIVE_BASENAME.tar.xz" "https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/${ARCHIVE_BASENAME}.tar.xz" | ||
| 51 | + SHA256="$(curl -sL "https://github.com/ngtcp2/nghttp3/releases/download/${NGHTTP3_REF}/checksums.txt" | grep 'tar.xz$')" | ||
| 52 | + log_and_verify_sha256sum "nghttp3" "$ARCHIVE_BASENAME.tar.xz" "$SHA256" | ||
| 53 | + tar -xJf "$ARCHIVE_BASENAME.tar.xz" | ||
| 54 | + rm "$ARCHIVE_BASENAME.tar.xz" | ||
| 55 | + mv "$ARCHIVE_BASENAME" nghttp3 | ||
| 55 | 56 | ||
| 56 | 57 | cd nghttp3 | |
| 57 | 58 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments