diff --git a/sync.sh b/sync.sh index 0b1f344..5962f94 100755 --- a/sync.sh +++ b/sync.sh @@ -15,14 +15,15 @@ do if [ -d "$NAME" ] then - rm -r $NAME + cd $NAME + git remote update + else + git clone --mirror $ORIG + cd $NAME fi - git clone --mirror $ORIG - cd $NAME git push --mirror $DEST cd .. - rm -r $NAME echo "Done." done <./repo-list