manager: fix downloading and unexpected operator error

This commit is contained in:
2025-08-11 14:07:56 +03:00
committed by GitHub
parent a1211c91fe
commit 442155b9f6

View File

@@ -40,7 +40,7 @@ select_variant()
if getprop ro.product.cpu.abi | grep "arm64-v8a" &>/dev/null; then ARCH="arm64-v8a";
else ARCH="armeabi-v7a"
fi
[ $1 == "static" ] && VARIANT="static-"
[ $1 = "static" ] && VARIANT="static-"
LINK="https://github.com/ShawkTeam/pmt-renovated/releases/download/${RELEASE}/pmt-${VARIANT}${ARCH}.zip"
}
@@ -49,7 +49,7 @@ download()
{
mkdir -p $PREFIX/tmp
echo "Downloading pmt-${VARIANT}${ARCH}.zip (${RELEASE})"
if ! wget -o $PREFIX/tmp/pmt.zip "${LINK}" &>/dev/null; then
if ! wget -O $PREFIX/tmp/pmt.zip "${LINK}" &>/dev/null; then
echo "Download failed! LINK=${LINK}"
rm $PREFIX/tmp/*.zip
exit 1