all repos — site @ f27e52f97df1680b1cc9cf3e7899b1a0ee0e7127

source for my site, found at icyphox.sh

bin/old/draft (view raw)

 1#!/bin/sh
 2
 3draft() {
 4    mv "$1" drafts/
 5}
 6
 7undraft() {
 8    mv "$1" pages/blog/
 9}
10
11post="$1"
12if [ "$1" == "u" ]; then
13    post="$2"
14    undraft "$post"
15else
16    draft "$post"
17fi