Check if a project uses Git before syncing.

This commit is contained in:
Hyperling 2024-12-28 08:59:15 -07:00
parent 76bdc4660f
commit 2b743dbff6

View File

@ -453,8 +453,12 @@
ls -d ~/Code/* | while read project; do ls -d ~/Code/* | while read project; do
echo "*** `basename $project` ***" echo "*** `basename $project` ***"
cd $project cd $project
git pull if [[ -d .git ]]; then
git push git pull
git push
else
echo "Not a Git project, skipping!"
fi
done done
' '
alias_code_reset: | alias_code_reset: |