This commit is contained in:
USER
2023-03-06 20:35:25 +00:00
parent cc9e6ace99
commit 3beaa98ed6
2 changed files with 12 additions and 8 deletions

View File

@ -6,7 +6,7 @@ MYNAME=`uname -n`
ZPC=/zz ZPC=/zz
REPO='zPublic zPublicConfig zShared' REPO='zPublic zPublicConfig zShared'
KEYS=
if [ ! -d ${ZPC} ] if [ ! -d ${ZPC} ]
then then
@ -18,6 +18,7 @@ do
echo $i echo $i
if [ ! -d ${ZPC}/$i ] if [ ! -d ${ZPC}/$i ]
then then
echo $i
cd ${ZPC} cd ${ZPC}
git clone https://github.com/spongle70/${i}.git git clone https://github.com/spongle70/${i}.git
fi fi

View File

@ -6,14 +6,17 @@ MYNAME=`uname -n`
ZPC=/zz ZPC=/zz
REPO='zPublic zPublicConfig zShared' REPO='zPublic zPublicConfig zShared'
KEYS=
for i in ${REPO}
if [ -d ${ZPC} ] do
then
for i in `ls -d ${ZPC}/z*`
do
echo $i echo $i
if [ -d ${ZPC}/$i ]
then
echo $i
cd ${ZPC}
(cd $i; git pull) (cd $i; git pull)
done fi
fi done
exit 0 exit 0