fixup manager

This commit is contained in:
2025-08-18 23:05:18 +03:00
parent 9724bee46e
commit 7b29059a8e

View File

@@ -36,10 +36,10 @@ select_variant()
{ {
LINK=""; ARCH=""; VARIANT="" LINK=""; ARCH=""; VARIANT=""
if getprop ro.product.cpu.abi | grep "arm64-v8a" &>/dev/null; then ARCH="arm64-v8a"; if getprop ro.product.cpu.abi | grep "arm64-v8a" &>/dev/null; then ARCH="arm64-v8a"
else ARCH="armeabi-v7a" else ARCH="armeabi-v7a"
fi fi
grep "static" <<< $1 &>/dev/null && VARIANT="static-" if grep "static" <<< $1 &>/dev/null; then VARIANT="static-"; fi
LINK="https://github.com/ShawkTeam/pmt-renovated/releases/download/${RELEASE}/pmt-${VARIANT}${ARCH}.zip" LINK="https://github.com/ShawkTeam/pmt-renovated/releases/download/${RELEASE}/pmt-${VARIANT}${ARCH}.zip"
} }
@@ -104,7 +104,7 @@ case $1 in
"install") "install")
is_installed is_installed
checks checks
select_variant $(grep "static" <<< $2 &>/dev/null && echo static) select_variant $(grep "static" <<< $2 &>/dev/null && command echo static)
download download
setup setup
;; ;;
@@ -112,13 +112,13 @@ case $1 in
uninstall && echo "Uninstalled successfully." uninstall && echo "Uninstalled successfully."
;; ;;
"reinstall") "reinstall")
uninstall uninstall
checks checks
select_variant $(grep "static" <<< $2 &>/dev/null && echo static) select_variant $(grep "static" <<< $2 &>/dev/null && command echo static)
download download
setup setup
;; ;;
*) *)
command echo "$0: Unknown argument: $1" command echo "$0: Unknown argument: $1"
exit 1 ;; exit 1 ;;
esac esac