uBlock/tools/update-submodules.sh
Raymond Hill 6fa8ae619d
Revert "Pass -e flag to bash (#3790)"
This reverts commit bb20159495.
2021-07-31 14:49:32 -04:00

15 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