From 704b4e34462dd1ecd320154a8cd70b23148b5ae4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 10 Dec 2025 11:11:00 +0100 Subject: [PATCH] updated by /home/nico/bin/sync-all-repos on bridge --- icrc-sync | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/icrc-sync b/icrc-sync index 0a8308a..f22a0a1 100755 --- a/icrc-sync +++ b/icrc-sync @@ -6,13 +6,22 @@ if [ $# -ne 1 ]; then exit 1 fi +cd ~/vcs + +# First sync our notes repo +if [ -d ~/vcs/icrc ]; then + cd ~/vcs/icrc + git pull +else + git clone ssh://git@code.ungleich.ch/nico/icrc.git +fi + fromto=$1; shift dir=/mnt/c/Users/A090964/vcs/ repolist=$(ssh icrcnb "cd $dir; ls -1 icrc*") echo $repolist -cd ~/vcs for repo in $repolist; do if [ "$fromto" = "from" ]; then mkdir -p ~/vcs/icrc-${repo}