tNow create the whole path to the post - monochromatic - monochromatic blog: http://blog.z3bra.org
(HTM) git clone git://z3bra.org/monochromatic
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 41c4f9de921b6ae3491985f23fade60d6eccada8
(DIR) parent 31b83591c24978a794ceb1bbd18402bb39932078
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 28 Jan 2014 13:21:15 +0100
Now create the whole path to the post
Diffstat:
M tools/post.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/tools/post.sh b/tools/post.sh
t@@ -5,7 +5,7 @@
folder=$(date +%Y/%m)
file=${1// /-}.html
-[[ ! -d ${folder} ]] && mkdir ${folder}
+[[ ! -d ${folder} ]] && mkdir -p ${folder}
POST="${folder}/${file}"