mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Add command to update submodules
This commit is contained in:
parent
5ce30d7163
commit
b02970f5ee
15
tools/update-submodules.sh
Executable file
15
tools/update-submodules.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user