ash is not bash, there's no [[ ]] nor ==

pull/404/head
Paul Philippov 2022-08-24 19:16:07 -04:00
parent da2ad008d9
commit 04e4db68af
1 changed files with 2 additions and 5 deletions

View File

@ -75,11 +75,8 @@ do_wipe_overlay() {
download_firmware() {
echo_c 33 "\nFirmware"
osr=$(get_system_build)
if [[ "${osr}" == "lite" ]] || [[ "${osr}" == "" ]]; then
build="-"
else
build="-${osr}-"
fi
[ -n "${osr}"] && [ "lite" != "${osr}" ] && build="${build}${osr}-"
[ -z "$url" ] && url="https://github.com/OpenIPC/firmware/releases/download/latest/openipc.${soc}${build}br.tgz"
echo "Download from $url"
[ -z "$HASERLVER" ] && progress="-#" || progress="-s"