all repos — site @ eb5ceb8bad0a830d8f6f0b952e745147eec092f6

source for my site, found at icyphox.sh

bin/old/draft (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
#!/bin/sh

draft() {
    mv "$1" drafts/
}

undraft() {
    mv "$1" pages/blog/
}

post="$1"
if [ "$1" == "u" ]; then
    post="$2"
    undraft "$post"
else
    draft "$post"
fi