git ssb

0+

Grey the earthling / gkn.me.uk



Commit fda08ad6073a00c5898a5efbcc9cb5eb5d563239

build.sh: use git status to detect new content

git diff doesn't include untracked files.
This was not obvious.

Use `git status` in porcelain mode, and grep, instead.
Greg K Nicholson committed on 3/30/2018, 9:19:07 PM
Parent: f13cc96ec8be439f6acd70c7b1b52ae0585766ca

Files changed

build.shchanged
build.shView
@@ -1,7 +1,7 @@
11 ./develop_server.sh stop && \
22 git checkout content && \
3- if [[ "$(git diff content/)" ]]
3 + if [[ "$(git status --porcelain=2)" ]]
44 then
55 git add content/
66 git commit -m "Update content $(date +%F\ %X)"
77 fi && \

Built with git-ssb-web