Update install-termux.sh
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# By YZBruh
|
# By YZBruh
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
VERSION="2.1.0"
|
VERSION="2.1.0"
|
||||||
CUR_DIR="$(pwd)"
|
CUR_DIR="$(pwd)"
|
||||||
@@ -23,13 +23,13 @@ if [[ "${UNAME}" == "aarch64" ]] || [[ "${UNAME}" == "armv8a" ]]; then
|
|||||||
ARCH="aarch64"
|
ARCH="aarch64"
|
||||||
elif [[ "${UNAME}" == "aarch32" ]] || [[ "${UNAME}" == "armv7a" ]]; then
|
elif [[ "${UNAME}" == "aarch32" ]] || [[ "${UNAME}" == "armv7a" ]]; then
|
||||||
ARCH="armv7a"
|
ARCH="armv7a"
|
||||||
|
SUB_PREF="eabi"
|
||||||
else
|
else
|
||||||
echo " - Unsupported arch: ${UNAME}!"
|
echo " - Unsupported arch: ${UNAME}!"
|
||||||
abort
|
abort
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REL_LINK="https://github.com/YZBruh/pbt/releases/download/${VERSION}/pmt-${ARCH}-linux-android.xz"
|
REL_LINK="https://github.com/YZBruh/pbt/releases/download/${VERSION}/pmt-${ARCH}-linux-android${SUB_PREF}.xz"
|
||||||
|
|
||||||
|
|
||||||
if [ -f "${TERMUX_BIN_PREFIX}/pmt" ]; then
|
if [ -f "${TERMUX_BIN_PREFIX}/pmt" ]; then
|
||||||
read -p " - pmt already installed. Are you trying to update etc? (y/n) " state
|
read -p " - pmt already installed. Are you trying to update etc? (y/n) " state
|
||||||
|
|||||||
Reference in New Issue
Block a user