]> Sergey Matveev's repositories - zk.zsh.git/commitdiff
Built-in mkdir
authorSergey Matveev <stargrave@stargrave.org>
Tue, 15 Mar 2022 17:54:10 +0000 (20:54 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 15 Mar 2022 17:54:10 +0000 (20:54 +0300)
zk.zsh

diff --git a/zk.zsh b/zk.zsh
index cfc95a4796212116896c973267ab707a6c74552f..9f9c71643f17dc8296a703b9a3ed96235edfdfd2 100755 (executable)
--- 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
     }