Commit c00fc772f1fb429ae01504f954f70476538c8dfd
Refuse to publish if there are uncommitted changes
Grey Nicholson committed on 10/1/2021, 2:16:11 PMParent: 6b39425b5d48d9bbd25ee3a82f436f6f8561704a
Files changed
Makefile | changed |
Makefile | ||
---|---|---|
@@ -26,8 +26,10 @@ | ||
26 | 26 … | else ifeq "${SSHDIR}" "" |
27 | 27 … | @echo "SSHDIR is undefined" |
28 | 28 … | else ifeq "${SSHPORT}" "" |
29 | 29 … | @echo "SSHPORT is undefined" |
30 … | +else ifneq "$$(git status --porcelain)" "" | |
31 … | + @echo "Uncommitted changes" | |
30 | 32 … | else |
31 | 33 … | echo -e "cd ${SSHDIR} \n put -r output/* \n exit" | \ |
32 | 34 … | sshpass -e sftp -oBatchMode=no -b - sftp://${SSHUSER}@gkn.me.uk:${SSHPORT} |
33 | 35 … | touch $@ |
Built with git-ssb-web