all repos — site @ 7f62efe6bc667c7cb11a94f850da2509241d646a

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