Skip to content

Commit be05a4b

Browse files
Merge pull request #57 from RandomCoderOrg/detect-termux-support
2 parents 3ab4291 + c1995cc commit be05a4b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
DIE() { echo -e "${@}"; exit 1 ;:;}
44
GWARN() { echo -e "\e[90m${*}\e[0m";:;}
55

6+
# Check for termux playstore version:
7+
if [[ "$TERMUX_VERSION" == "googleplay"* ]]; then
8+
GWARN "Termux Play Store version detected."
9+
DIE "The Play Store version is unsupported.\nPlease reinstall Termux from F-Droid: https://f-droid.org/packages/com.termux/"
10+
fi
11+
612
apt install -y jq wget proot pv pulseaudio libandroid-shmem-static which
713
[[ ! -d udroid/src ]] && {
814
echo "udroid/src not found"

0 commit comments

Comments
 (0)