1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00
uBlock/tools/update-submodules.sh
2021-09-07 13:50:52 -04:00

18 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
#
# This script assumes a linux environment
set -e
echo "*** Update submodules"
git submodule update --remote
if [[ $(git diff ./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