From 2831331e93d65744bbb62fa25e26bbecf6430fad Mon Sep 17 00:00:00 2001 From: USER Date: Mon, 27 Mar 2023 21:22:22 +0100 Subject: [PATCH] . --- Makefile.gitshared | 2 +- sbin/{GitClonePublic => GitClone} | 10 ++++++---- sbin/{GitPullPublic => GitPull} | 13 ++++++++++--- 3 files changed, 17 insertions(+), 8 deletions(-) rename sbin/{GitClonePublic => GitClone} (66%) rename sbin/{GitPullPublic => GitPull} (58%) diff --git a/Makefile.gitshared b/Makefile.gitshared index de62b2f..13765bf 100644 --- a/Makefile.gitshared +++ b/Makefile.gitshared @@ -30,7 +30,7 @@ update-config: ## update global git config and ignores update: -(${ZPC}/zShared/sbin/GitClonePublic) - -(${ZPC}/zShared/sbin/GitPullPublic) + -(${ZPC}/zShared/sbin/GitPull) ##### load-all: update-config mark-complete diff --git a/sbin/GitClonePublic b/sbin/GitClone similarity index 66% rename from sbin/GitClonePublic rename to sbin/GitClone index 6acd433..42c6132 100755 --- a/sbin/GitClonePublic +++ b/sbin/GitClone @@ -4,7 +4,7 @@ echo "SCRIPT $0 starting" MYNAME=`uname -n` -ZPC=/zz +ZZ=/zz REPO='zPublic zShared' KEYS= @@ -13,15 +13,17 @@ then mkdir ${ZPC} fi -REPOG=https://mint.nopenso.com/mirror +REPOSITE=https://mint.nopenso.com/mirror -for i in ${REPO} +for i in `ls ${ZZ}` do echo $i if [ ! -d ${ZPC}/$i ] then echo $i cd ${ZPC} - git clone ${REPOG}/${i}.git + git clone ${REPOSITE}/${i}.git fi done + +exit 0 diff --git a/sbin/GitPullPublic b/sbin/GitPull similarity index 58% rename from sbin/GitPullPublic rename to sbin/GitPull index 23ad096..15f575c 100755 --- a/sbin/GitPullPublic +++ b/sbin/GitPull @@ -4,14 +4,21 @@ echo "SCRIPT $0 starting" MYNAME=`uname -n` -ZPC=/zz +ZZ=/zz REPO='zPublic zShared' KEYS= -for i in ${REPO} +if [ ! -d ${ZPC} ] +then + mkdir ${ZPC} +fi + +REPOSITE=https://mint.nopenso.com/mirror + +for i in `ls ${ZZ}` do echo $i - if [ -d ${ZPC}/$i ] + if [ -d ${ZZ}/$i ] then echo $i cd ${ZPC}