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
echo "*** `basename $project` ***"
cd $project
git pull
git push
if [[ -d .git ]]; then
git pull
git push
else
echo "Not a Git project, skipping!"
fi
done
'
alias_code_reset: |