1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 02:42:33 +01:00
uBlock/tools/update-submodules.sh

18 lines
357 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-07-29 17:46:35 +02:00
#
# This script assumes a linux environment
2021-07-31 23:34:25 +02:00
set -e
2021-07-29 17:46:35 +02:00
echo "*** Update submodules"
git submodule update --remote
2021-09-07 19:50:52 +02:00
if [[ $(git diff ./submodules/) ]]; then
2021-07-29 17:46:35 +02:00
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