Skip to content

Commit eccfb82

Browse files
author
Travis Lee
authored
get one tag only if there is more than one tag (#31)
1 parent c6f5733 commit eccfb82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

curl-static-cross.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# To compile locally, install Docker, clone the Git repository, navigate to the repository directory,
44
# and then execute the following command:
5-
# ARCH=aarch64 CURL_VERSION=8.2.1 QUICTLS_VERSION=3.1.2 NGTCP2_VERSION=0.18.0 \
5+
# ARCH=aarch64 CURL_VERSION=8.2.1 QUICTLS_VERSION=3.1.2 NGTCP2_VERSION="" \
66
# ZLIB_VERSION=1.3 CONTAINER_IMAGE=debian:latest \
77
# sh curl-static-cross.sh
88
# script will create a container and compile curl.
@@ -16,15 +16,15 @@
1616
# -e ENABLE_DEBUG=0 \
1717
# -e CURL_VERSION=8.2.1 \
1818
# -e QUICTLS_VERSION=3.1.2 \
19-
# -e NGTCP2_VERSION="0.18.0" \
19+
# -e NGTCP2_VERSION="" \
2020
# -e NGHTTP3_VERSION="" \
2121
# -e NGHTTP2_VERSION="" \
2222
# -e ZLIB_VERSION="1.3" \
2323
# -e LIBUNISTRING_VERSION=1.1 \
2424
# -e LIBIDN2_VERSION=2.3.4 \
25-
# -e BROTLI_VERSION=1.1.0 \
26-
# -e ZSTD_VERSION=1.5.5 \
27-
# -e LIBSSH2_VERSION=1.11.0 \
25+
# -e BROTLI_VERSION=v1.1.0 \
26+
# -e ZSTD_VERSION="" \
27+
# -e LIBSSH2_VERSION="" \
2828
# -e CONTAINER_IMAGE=debian:latest \
2929
# alpine:latest sh curl-static-cross.sh
3030
# Supported architectures: x86_64, aarch64, armv7l, i686, riscv64, s390x,
@@ -271,7 +271,7 @@ url_from_github() {
271271
fi
272272

273273
if [ -z "${url}" ]; then
274-
tag_name=$(printf "%s" "${tags}" | jq -r '.tag_name')
274+
tag_name=$(printf "%s" "${tags}" | jq -r '.tag_name' | head -1)
275275
url="https://github.com/${repo}/archive/refs/tags/${tag_name}.tar.gz"
276276
fi
277277

0 commit comments

Comments
 (0)