Skip to content

Commit 90d9d7c

Browse files
Update plugin/source/dynamix.unraid.net/pkg_build.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f699d9c commit 90d9d7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/source/dynamix.unraid.net/pkg_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,13 @@ rm "/tmp/${latest_nodejs}"
7878

7979
# Get latest nghttp3 version
8080
base_nghttp3_url="https://mirrors.slackware.com/slackware/slackware64-current/slackware64/n/"
81-
latest_nghttp3=$(wget -q -O- "${base_nghttp3_url}" | grep -o "nghttp3-[0-9.]*-x86_64-[0-9]*\.txz" | tail -n 1)
81+
latest_nghttp3=$(wget -q -O- "${base_nghttp3_url}" | grep -o "nghttp3-[0-9.]*-x86_64-[0-9]*\.txz" | sort -V | tail -n 1)
8282
nghttp3_download_url="${base_nghttp3_url}${latest_nghttp3}"
8383
wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"
84+
if [[ $? -ne 0 ]]; then
85+
echo "Error: Failed to download nghttp3 package."
86+
exit 1
87+
fi
8488
nghttp3_sha256=$(sha256sum "/tmp/${latest_nghttp3}" | cut -f 1 -d ' ')
8589
rm "/tmp/${latest_nghttp3}"
8690

0 commit comments

Comments
 (0)