tAdded a symlink to make editing easier - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 4f502797432c68b3df1c780e7380689684fd10d1
(DIR) parent 32cafbda572f26957accfeceafb337447652f59c
(HTM) Author: z3bra <willy@mailoo.org>
Date: Fri, 6 Dec 2013 12:52:38 +0100
Added a symlink to make editing easier
Diffstat:
M tools/post.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/tools/post.sh b/tools/post.sh
t@@ -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