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}