From 46e6b205a95a5ee1ce63433e2425d864e27877ff Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 28 Mar 2026 15:17:45 -0700 Subject: [PATCH] Hide output from .git folder deletion. --- setup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index 706f264..e19b332 100644 --- a/setup.sh +++ b/setup.sh @@ -99,15 +99,18 @@ if [[ ! -d ~/bin ]]; then mkdir -pv ~/bin fi cp -v ~/$env_shared_dir/bin-shared/* ~/bin/ -mv -v ~/$env_shared_dir ~/TRASH/$env_shared_dir-"`date "+%Y%m%d-%H%M%S"`" +mv -v ~/$env_shared_dir \ + ~/TRASH/$env_shared_dir-"`date "+%Y%m%d-%H%M%S"`" \ + | grep -v '/.git/' echo -e "\n`date` - Cleanup" 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'`" | - grep -v '/.git/' + mv -v $DIR \ + ~/TRASH/termux-"`date +'%Y%m%d%H%M%S'`" \ + | grep -v '/.git/' else echo "File was used individually, remove it." mv "$PROG" ~/TRASH/