updated by /home/nico/bin/sync-all-repos on bridge
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s
This commit is contained in:
parent
abb9b93557
commit
704b4e3446
1 changed files with 10 additions and 1 deletions
11
icrc-sync
11
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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue