1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 01:27:12 +02:00

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

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