This commit is contained in:
USER
2023-02-04 20:00:59 +00:00
parent d7dad7cbdf
commit 8091ca8dd2
3 changed files with 63 additions and 0 deletions

24
shared/rGitClone Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
#
echo "SCRIPT $0 starting"
MYNAME=`uname -n`
ZPC=/zz
REPO='zPublicConfig zShared'
if [ ! -d ${ZPC} ]
then
mkdir ${ZPC}
fi
for i in ${REPO}
do
echo $i
if [ ! -d ${ZPC}/$i ]
then
cd ${ZPC}
git clone https://github.com/spongle70/${i}.git
fi
done

19
shared/rGitPull Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
#
echo "SCRIPT $0 starting"
MYNAME=`uname -n`
ZPC=/zz
REPO='zPublicConfig zShared'
if [ -d ${ZPC} ]
then
for i in `ls -d ${ZPC}/z*`
do
echo $i
(cd $i; git pull)
done
fi
exit 0