3 ms·
Add a “set -e” unless you want to publish a failed build.
by koolba 7y ago
Add a “set -e” unless you want to publish a failed build.
- yingw787 7y agoI actually noticed I had a few incorrect dates, about two weeks after I published the posts. One annoying thing about hugo server is that you can't see draft posts timestamped in the future, which makes it hard to schedule things. My stack definitely could use improvement in a real-life production setting :)
- earthboundkid 7y agoThere’s a Hugo flag for buildFuture. I have it turned on in Netlify branch deploys and off in prod. ;-)
- uffe5 7y agoWhether that helps or not depends on how the script is called. Unfortunately. Better to check the result of the command and call exit explicitly if you want to be sure.