avoid creating dir only if it is \".\"
This commit is contained in:
parent
527c13b36d
commit
7974dfca0f
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@
|
||||||
(let [dir (or *dir*
|
(let [dir (or *dir*
|
||||||
(-> (System/getProperty "leiningen.original.pwd")
|
(-> (System/getProperty "leiningen.original.pwd")
|
||||||
(io/file name) (.getPath)))]
|
(io/file name) (.getPath)))]
|
||||||
(if (or (.isDirectory (io/files dir)) (.mkdir (io/file dir)) *force?*)
|
(if (or (= "." dir) (.mkdir (io/file dir)) *force?*)
|
||||||
(doseq [path paths]
|
(doseq [path paths]
|
||||||
(if (string? path)
|
(if (string? path)
|
||||||
(.mkdirs (template-path dir path data))
|
(.mkdirs (template-path dir path data))
|
||||||
|
|
Loading…
Reference in a new issue