git ssb

0+

Grey the earthling / gkn.me.uk



Commit ffdd8daff4715410cb83a5d5184b94b3111586ed

Exit when refusing to publish

If we're publishing as a git pre-push hook, this cancels the push.
Grey Nicholson committed on 10/1/2021, 2:21:21 PM
Parent: c00fc772f1fb429ae01504f954f70476538c8dfd

Files changed

Makefilechanged
MakefileView
@@ -20,16 +20,21 @@
2020
2121 .cache/publish: output
2222 ifeq "${SSHUSER}" ""
2323 @echo "SSHUSER is undefined"
24 + exit 1
2425 else ifeq "${SSHPASS}" ""
2526 @echo "SSHPASS is undefined"
27 + exit 1
2628 else ifeq "${SSHDIR}" ""
2729 @echo "SSHDIR is undefined"
30 + exit 1
2831 else ifeq "${SSHPORT}" ""
2932 @echo "SSHPORT is undefined"
33 + exit 1
3034 else ifneq "$$(git status --porcelain)" ""
3135 @echo "Uncommitted changes"
36 + exit 1
3237 else
3338 echo -e "cd ${SSHDIR} \n put -r output/* \n exit" | \
3439 sshpass -e sftp -oBatchMode=no -b - sftp://${SSHUSER}@gkn.me.uk:${SSHPORT}
3540 touch $@
@@ -40,5 +45,4 @@
4045 toolbox run npx prettier -w static/style/tarazed.css
4146
4247 serve: output
4348 cd output && python -m http.server
44-

Built with git-ssb-web