Initial commit.

Signed-off-by: Nicolás Ortega Froysa <nicolas@ortegas.org>
This commit is contained in:
2024-05-01 10:21:28 +02:00
commit 516fc50e52
5 changed files with 56 additions and 0 deletions

23
sync.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
while read line
do
ORIG=$(echo $line | cut -d ';' -f1)
DEST=$(echo $line | cut -d ';' -f2)
NAME=${ORIG##*/}
echo "Mirroring $NAME"
if [ -d "$NAME" ]
then
rm -r $NAME
fi
git clone --mirror $ORIG
cd $NAME
git push --mirror $DEST
cd ..
rm -r $NAME
"Done."
done <./repo-list