Skip to content

Commit d4bff0e

Browse files
committed
fix: pkg_build
1 parent 6906f5e commit d4bff0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ rm "/tmp/${latest_nodejs}"
8080
base_nghttp3_url="https://mirrors.slackware.com/slackware/slackware64-current/slackware64/n/"
8181
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}"
83-
wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"
84-
if [[ $? -ne 0 ]]; then
83+
if ! wget -q "${nghttp3_download_url}" -O "/tmp/${latest_nghttp3}"; then
8584
echo "Error: Failed to download nghttp3 package."
8685
exit 1
8786
fi

0 commit comments

Comments
 (0)