File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
plugin/source/dynamix.unraid.net Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,13 @@ rm "/tmp/${latest_nodejs}"
7878
7979# Get latest nghttp3 version
8080base_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)
8282nghttp3_download_url=" ${base_nghttp3_url}${latest_nghttp3} "
8383wget -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
8488nghttp3_sha256=$( sha256sum " /tmp/${latest_nghttp3} " | cut -f 1 -d ' ' )
8589rm " /tmp/${latest_nghttp3} "
8690
You can’t perform that action at this time.
0 commit comments