mirror of https://github.com/gorhill/uBlock.git
Add command to update submodules
This commit is contained in:
parent
5ce30d7163
commit
b02970f5ee
|
@ -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