Refactor update.sh

This commit is contained in:
Santiago Lo Coco 2022-02-08 01:15:27 -03:00
parent c205d70958
commit f90f0027b0
1 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
runScript() {
git submodule update --remote --merge git submodule update --remote --merge
gitStatus=$(git status --porcelain) gitStatus=$(git status --porcelain)
grep -q "sadedot" <(echo "$gitStatus") || return grep -q "sadedot" <(echo "$gitStatus") || return
git commit -m "Update sadedot submodule" sadedot git commit -m "Update sadedot submodule" sadedot
git push git push
}
runScript