mirror of https://github.com/OpenIPC/firmware.git
[no ci] fix retrieve custom url (#1173)
parent
5d6551989d
commit
cc046d4886
general/overlay/usr/sbin
|
@ -3,7 +3,7 @@
|
||||||
# OpenIPC.org | v.20231202
|
# OpenIPC.org | v.20231202
|
||||||
#
|
#
|
||||||
|
|
||||||
scr_version=1.0.22
|
scr_version=1.0.23
|
||||||
|
|
||||||
args=" $@"
|
args=" $@"
|
||||||
|
|
||||||
|
@ -89,9 +89,7 @@ download_firmware() {
|
||||||
osr=$(get_system_build)
|
osr=$(get_system_build)
|
||||||
ftype="nor"
|
ftype="nor"
|
||||||
build="${soc}-${ftype}-${osr}"
|
build="${soc}-${ftype}-${osr}"
|
||||||
fw_download_url=$(fw_printenv -n upgrade)
|
[ -z "$url" ] && url=$(fw_printenv -n upgrade || echo "https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz")
|
||||||
[ -z "${fw_download_url}" ] && fw_download_url="https://github.com/OpenIPC/firmware/releases/download/${branch}/openipc.${build}.tgz"
|
|
||||||
[ -z "$url" ] && url="${fw_download_url}"
|
|
||||||
echo "Download from $url"
|
echo "Download from $url"
|
||||||
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
|
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"
|
||||||
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"
|
[ "$(curl -o /dev/null -s -w '%{http_code}\n' "$url")" = "000" ] && die "Check your network!"
|
||||||
|
|
Loading…
Reference in New Issue