]> Sergey Matveev's repositories - zk.zsh.git/blobdiff - zk.zsh
Built-in mkdir
[zk.zsh.git] / 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
     }