Hide output from .git folder deletion.

This commit is contained in:
2026-03-28 15:17:45 -07:00
parent ea40967e2b
commit 46e6b205a9

View File

@@ -99,15 +99,18 @@ if [[ ! -d ~/bin ]]; then
mkdir -pv ~/bin mkdir -pv ~/bin
fi fi
cp -v ~/$env_shared_dir/bin-shared/* ~/bin/ 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" echo -e "\n`date` - Cleanup"
if [[ -n $DIR && $DIR != "/" && $DIR == *"deleteme" && -d .git ]]; then if [[ -n $DIR && $DIR != "/" && $DIR == *"deleteme" && -d .git ]]; then
echo "We are in a git clone, remove the project." echo "We are in a git clone, remove the project."
cd .. cd ..
mv -v $DIR ~/TRASH/termux-"`date +'%Y%m%d%H%M%S'`" | mv -v $DIR \
grep -v '/.git/' ~/TRASH/termux-"`date +'%Y%m%d%H%M%S'`" \
| grep -v '/.git/'
else else
echo "File was used individually, remove it." echo "File was used individually, remove it."
mv "$PROG" ~/TRASH/ mv "$PROG" ~/TRASH/