monochromatic

monochromatic blog: http://blog.z3bra.org
git clone git://z3bra.org/monochromatic
Log | Files | Refs

commit 4f502797432c68b3df1c780e7380689684fd10d1
parent 32cafbda572f26957accfeceafb337447652f59c
Author: z3bra <willy@mailoo.org>
Date:   Fri,  6 Dec 2013 12:52:38 +0100

Added a symlink to make editing easier

Diffstat:
tools/post.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/post.sh b/tools/post.sh @@ -11,8 +11,8 @@ POST="${folder}/${file}" cat tools/{head,body,foot}.template >> $POST -[[ -f ${folder}/${file} ]] && echo "$POST created" && exit 0 - -echo "cannot create ${POST}" +[[ ! -f ${folder}/${file} ]] && echo "cannot create ${POST}" && exit 1 +echo "$POST created" +ln -fs ${POST} post.html