7 lines
211 B
Bash
Executable file
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'
|