Add conditions in update.sh

This commit is contained in:
Santiago Lo Coco 2022-02-08 00:53:07 -03:00
parent 0d9d1f54e3
commit e79c5dbdf1
1 changed files with 2 additions and 0 deletions

View File

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