From e27924f0626fe4cbefab9e4e392cd630e79e26e5 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 14 Aug 2025 16:26:23 -0700 Subject: [PATCH] Only delete the project if deleteme is in the name. --- setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index f2b5c6c..6f9d0a1 100644 --- a/setup.sh +++ b/setup.sh @@ -11,10 +11,12 @@ echo "Working in '$DIR'." # Disable this since it can be timely. #echo -e "\n`date` - Upgrade Package Repos" +# #pkg update && # pkg upgrade -y echo -e "\n`date` - Check Storage Permission" + if [[ ! -e ~/storage/shared ]]; then sleep 3 termux-setup-storage @@ -29,6 +31,7 @@ else fi echo -e "\n`date` - Install Software" + pkg install -y \ openssh tsu vim htop git cronie man zip \ nmap traceroute wget \ @@ -36,6 +39,7 @@ pkg install -y \ kotlin php nodejs python libllvm hugo echo -e "\n`date` - BASH Environment" + if [[ ! -e ~/.env ]]; then if [[ -e env.example ]]; then mv -v env.example ~/.env @@ -70,7 +74,7 @@ fi echo -e "\n`date` - Cleanup" -if [[ -n $DIR && $DIR != "/" && -d .git ]]; then +if [[ -n $DIR && $DIR != "/" && $DIR == *"deleteme" && -d .git ]]; then echo "We are in a git clone, remove the project." cd .. mv -v $DIR ~/TRASH/termux-"`date +'%Y%m%d%H%M%S'`" |