|
@ -69,9 +69,11 @@ clone_git_repo() { |
|
|
local repo=$2 |
|
|
local repo=$2 |
|
|
if [ ! -d "$target" ]; then |
|
|
if [ ! -d "$target" ]; then |
|
|
mkdir -p "$target" |
|
|
mkdir -p "$target" |
|
|
|
|
|
echo "Cloning [$repo] into [$target]" |
|
|
git clone "$repo" "$target" |
|
|
git clone "$repo" "$target" |
|
|
else |
|
|
else |
|
|
# Update the repo otherwise |
|
|
# Update the repo otherwise |
|
|
|
|
|
echo "Updating [$repo]" |
|
|
cur_dir=$PWD |
|
|
cur_dir=$PWD |
|
|
cd "$target" |
|
|
cd "$target" |
|
|
git checkout . |
|
|
git checkout . |
|
|