[no ci] fix retrieve custom url (#1173)

pull/1176/head
cronyx 2023-12-02 22:50:15 +03:00 committed by GitHub
parent 5d6551989d
commit cc046d4886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# OpenIPC.org | v.20231202
#
scr_version=1.0.22
scr_version=1.0.23
args=" $@"
@ -89,9 +89,7 @@ download_firmware() {
osr=$(get_system_build)
ftype="nor"
build="${soc}-${ftype}-${osr}"
fw_download_url=$(fw_printenv -n upgrade)
[ -z "${fw_download_url}" ] && fw_download_url="https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz"
[ -z "$url" ] && url="${fw_download_url}"
[ -z "$url" ] && url=$(fw_printenv -n upgrade || echo "https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz")
echo "Download from $url"
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"