From 33088607509870d766d2713772351593ce020c8d Mon Sep 17 00:00:00 2001 From: Neal Probert Date: Fri, 26 Mar 2021 14:04:19 -0400 Subject: [PATCH] Updated git pulls for submodules --- bin/all-update.sh | 6 +++++- bin/camp-update.sh | 3 ++- bin/ntcna-update.sh | 3 ++- bin/pstar-update.sh | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/bin/all-update.sh b/bin/all-update.sh index f041382..e98c79a 100755 --- a/bin/all-update.sh +++ b/bin/all-update.sh @@ -8,7 +8,11 @@ function do_git { echo $1 "(Git)" cd $1 git ls-remote --get-url - git pull + if [ -f .gitmodules ]; then + git pull --recurse-submodules + else + git pull + fi cd .. echo } diff --git a/bin/camp-update.sh b/bin/camp-update.sh index 30ec690..25e348f 100755 --- a/bin/camp-update.sh +++ b/bin/camp-update.sh @@ -8,9 +8,10 @@ function do_git { echo $1 "(Git)" cd $1 git ls-remote --get-url - git pull if [ -f .gitmodules ]; then git pull --recurse-submodules + else + git pull fi cd .. echo diff --git a/bin/ntcna-update.sh b/bin/ntcna-update.sh index 8fcaf86..e0a1f32 100755 --- a/bin/ntcna-update.sh +++ b/bin/ntcna-update.sh @@ -4,9 +4,10 @@ function do_git { echo $1 "(Git)" cd $1 git ls-remote --get-url - git pull if [ -f .gitmodules ]; then git pull --recurse-submodules + else + git pull fi cd .. echo diff --git a/bin/pstar-update.sh b/bin/pstar-update.sh index 2a546c5..4615bca 100755 --- a/bin/pstar-update.sh +++ b/bin/pstar-update.sh @@ -4,9 +4,10 @@ function do_git { echo $1 "(Git)" cd $1 git ls-remote --get-url - git pull if [ -f .gitmodules ]; then git pull --recurse-submodules + else + git pull fi cd .. echo