mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: pkg_build
This commit is contained in:
@@ -80,8 +80,7 @@ rm "/tmp/${latest_nodejs}"
|
|||||||
base_nghttp3_url="https://mirrors.slackware.com/slackware/slackware64-current/slackware64/n/"
|
base_nghttp3_url="https://mirrors.slackware.com/slackware/slackware64-current/slackware64/n/"
|
||||||
latest_nghttp3=$(wget -q -O- "${base_nghttp3_url}" | grep -o "nghttp3-[0-9.]*-x86_64-[0-9]*\.txz" | sort -V | tail -n 1)
|
latest_nghttp3=$(wget -q -O- "${base_nghttp3_url}" | grep -o "nghttp3-[0-9.]*-x86_64-[0-9]*\.txz" | sort -V | tail -n 1)
|
||||||
nghttp3_download_url="${base_nghttp3_url}${latest_nghttp3}"
|
nghttp3_download_url="${base_nghttp3_url}${latest_nghttp3}"
|
||||||
wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"
|
if ! wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"; then
|
||||||
if [[ $? -ne 0 ]]; then
|
|
||||||
echo "Error: Failed to download nghttp3 package."
|
echo "Error: Failed to download nghttp3 package."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user