fix: pkg_build

This commit is contained in:
Eli Bosley
2024-11-06 10:08:32 -05:00
parent e9137f2553
commit 2d60045784

View File

@@ -80,8 +80,7 @@ rm "/tmp/${latest_nodejs}"
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)
nghttp3_download_url="${base_nghttp3_url}${latest_nghttp3}"
wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"
if [[ $? -ne 0 ]]; then
if ! wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"; then
echo "Error: Failed to download nghttp3 package."
exit 1
fi