Skip to content

Commit

Permalink
🐛 move termux check into termux conditional block
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhomer committed Dec 6, 2023
1 parent f7bf8cf commit 803e293
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions bin/dotme-start
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 803e293

Please sign in to comment.