Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple bash script for moving published Hexo posts back to drafts.
#!/bin/bash
POST_DIR=source/_posts/
DRAFT_DIR=source/_drafts/
mv $POST_DIR$1.md $DRAFT_DIR
mv $POST_DIR$1/ $DRAFT_DIR
hexo clean
hexo generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.