1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00
uBlock/tools/update-submodules.sh
2021-07-29 11:46:35 -04:00

16 lines
354 B
Bash
Executable File

#!/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