Add command to update submodules

This commit is contained in:
Raymond Hill 2021-07-29 11:46:35 -04:00
parent 5ce30d7163
commit b02970f5ee
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 15 additions and 0 deletions

15
tools/update-submodules.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
#
# This script assumes a linux environment
echo "*** Update submodules"
git submodule update --remote
if [ `git diff --quiet ./submodules/` ]; then
git add -u submodules/
git commit -m 'Update submodules'
git push origin master
echo "*** Submodules updated"
else
echo "*** Submodules are already up to date"
fi