From 82a10b41acc19b79d0f5f43cef9a9e1ed44ce41a Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 15 Mar 2022 20:54:10 +0300 Subject: [PATCH] Built-in mkdir --- zk.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zk.zsh b/zk.zsh index cfc95a4..9f9c716 100755 --- a/zk.zsh +++ b/zk.zsh @@ -30,6 +30,7 @@ typeset -a cats for p (**(/)) cats=($p $cats) zmodload zsh/mapfile +zmodload -F zsh/files b:zf_mkdir typeset -A links typeset -A backs typeset -aU ws @@ -144,7 +145,7 @@ case $1 in (html-index) genIndex $2 ;; (htmls) for p (${(k)pages}) { - mkdir -p $2/$p:h + zf_mkdir -p $2/$p:h genHTML $p > $2/$p.html touch -r $p $2/$p.html } -- 2.44.0