From 803e29328a2ab9e8cbffef42a8f6199c77aa5a44 Mon Sep 17 00:00:00 2001 From: Ian Homer Date: Wed, 6 Dec 2023 20:15:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20move=20termux=20check=20into=20t?= =?UTF-8?q?ermux=20conditional=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/dotme-start | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/bin/dotme-start b/bin/dotme-start index b5666926..b579733d 100755 --- a/bin/dotme-start +++ b/bin/dotme-start @@ -30,13 +30,16 @@ if ! command -v bash > /dev/null 2>&1; then fi if [ "expr substr $(uname -s) 1 5" == "Linux" ]; then - echo "Removing default termux properties since this is dotfiles managed" - if [ -f ~/.termux/termux.properties ] ; then - rm ~/.termux/termux.properties - fi - echo "Setting up storage" - if [ ! -d ~/storage ] ; then - termux-setup-storage + if [ "$(uname -o)" == "Android" ] ; then + # termux bootstrap + echo "Removing default termux properties since this is dotfiles managed" + if [ -f ~/.termux/termux.properties ] ; then + rm ~/.termux/termux.properties + fi + echo "Setting up storage" + if [ ! -d ~/storage ] ; then + termux-setup-storage + fi fi fi