Use the git clone function which allows for mirrors

This commit is contained in:
Bob Mottram 2016-11-06 10:39:56 +00:00
parent e174c59d78
commit 5470499e5d
1 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ function image_setup {
if [ -d $USERHOME/develop/python-cliapp ]; then if [ -d $USERHOME/develop/python-cliapp ]; then
sudo rm -rf $USERHOME/develop/python-cliapp sudo rm -rf $USERHOME/develop/python-cliapp
fi fi
git clone $CLIAPP_REPO $USERHOME/develop/python-cliapp git_clone $CLIAPP_REPO $USERHOME/develop/python-cliapp
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $"Failed to clone python-cliapp" echo $"Failed to clone python-cliapp"
return return
@ -186,7 +186,7 @@ function image_setup {
if [ -d $USERHOME/develop/mbr ]; then if [ -d $USERHOME/develop/mbr ]; then
sudo rm -rf $USERHOME/develop/mbr sudo rm -rf $USERHOME/develop/mbr
fi fi
git clone $MBR_REPO $USERHOME/develop/mbr git_clone $MBR_REPO $USERHOME/develop/mbr
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $"Failed to clone mbr" echo $"Failed to clone mbr"
return return
@ -221,7 +221,7 @@ function image_setup {
if [ -d $USERHOME/develop/multipath-tools ]; then if [ -d $USERHOME/develop/multipath-tools ]; then
sudo rm -rf $USERHOME/develop/multipath-tools sudo rm -rf $USERHOME/develop/multipath-tools
fi fi
git clone $MULTIPATH_TOOLS_REPO $USERHOME/develop/multipath-tools git_clone $MULTIPATH_TOOLS_REPO $USERHOME/develop/multipath-tools
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
echo $"Failed to clone multipath-tools" echo $"Failed to clone multipath-tools"
return return