This commit is contained in:
Wryn Wagner 2021-09-16 11:06:44 -06:00
parent 6d2043e19f
commit 06bafdc442

View File

@ -1,5 +1,6 @@
#!/bin/zsh #!/bin/zsh
echo hiya
git submodule update --remote --rebase --init git submodule update --remote --rebase --init
SUBMODULES=$(\ SUBMODULES=$(\
@ -8,6 +9,8 @@ SUBMODULES=$(\
| sed 's/^.*modified:\s*//; s/\s*(new commits).*$//' \ | sed 's/^.*modified:\s*//; s/\s*(new commits).*$//' \
) )
echo $SUBMODULES
[[ ${#SUBMODULES[@]} -gt 0 ]] && { [[ ${#SUBMODULES[@]} -gt 0 ]] && {
git add $SUBMODULES git add $SUBMODULES
git commit -m "Updated submodules to master : $SUBMODULES" git commit -m "Updated submodules to master : $SUBMODULES"