aboutsummaryrefslogtreecommitdiff
path: root/bin/submodules
diff options
context:
space:
mode:
Diffstat (limited to 'bin/submodules')
-rwxr-xr-xbin/submodules3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/submodules b/bin/submodules
index f004f2b..f79b635 100755
--- a/bin/submodules
+++ b/bin/submodules
@@ -21,6 +21,9 @@ for repo in $repos; do
if [ ! -d "modules/$module" ]; then
echo "Processing puppet module $module..."
git submodule add $repo modules/$module
+ elif [ -e "modules/$module/.git" ]; then
+ # The puppet module exists and is a git submodule, so update it
+ ( cd module/$module && git pull origin master )
fi
done