coreprotect-builder/update-submodules.sh
2024-07-30 10:35:08 -04:00

7 lines
211 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
git submodule foreach --recursive git fetch --all
git submodule foreach git reset --hard origin/master
git diff-index --quiet HEAD || git commit -am 'Automatic update submodule'