From a1211c91fe23d0d2ecc87578208e1b0276ca9b32 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 11 Aug 2025 12:50:02 +0300 Subject: [PATCH] manager: configure as only for termux --- manager.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/manager.sh b/manager.sh index 7a8aba2..316dc23 100644 --- a/manager.sh +++ b/manager.sh @@ -56,7 +56,7 @@ download() fi echo "Extracting..." - if ! unzip -d $PREFIX/tmp $PREFIX/tmp/pmt.zip &>/dev/null; then + if ! unzip -f -d $PREFIX/tmp $PREFIX/tmp/pmt.zip &>/dev/null; then echo "Extraction failed!" exit 1 fi @@ -97,6 +97,11 @@ if [ $# -eq 0 ]; then exit 1 fi +if ! basename -a ${PREFIX}/bin/* | grep "termux" &>/dev/null; then + echo "This script only for termux!" + exit 1 +fi + case $1 in "install") is_installed