.
This commit is contained in:
@ -25,6 +25,7 @@ clone_repo () {
|
|||||||
MYNAME=`uname -n`
|
MYNAME=`uname -n`
|
||||||
DELETE_ONETIME=0
|
DELETE_ONETIME=0
|
||||||
|
|
||||||
|
|
||||||
# set base directories
|
# set base directories
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -55,7 +55,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# set base directories
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
then
|
then
|
||||||
ZZ=~/git
|
ZZ=~/git
|
||||||
@ -81,8 +81,7 @@ else
|
|||||||
fi
|
fi
|
||||||
clone_repo
|
clone_repo
|
||||||
|
|
||||||
|
# start cloning repos
|
||||||
|
|
||||||
REPOSITE=${PRIVATE_SITE}
|
REPOSITE=${PRIVATE_SITE}
|
||||||
KEYS=${PRIVATE_KEYS}
|
KEYS=${PRIVATE_KEYS}
|
||||||
|
|
||||||
@ -107,6 +106,7 @@ clone_repo
|
|||||||
if [ ${DELETE_ONETIME} = 1 ]
|
if [ ${DELETE_ONETIME} = 1 ]
|
||||||
then
|
then
|
||||||
rm -f /root/root.private
|
rm -f /root/root.private
|
||||||
|
echo "Deleting /root/root.private"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $USER != "root" ]
|
if [ $USER != "root" ]
|
||||||
@ -117,3 +117,4 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user