avoid creating dir only if it is \".\"

This commit is contained in:
Shantanu Kumar 2014-06-29 11:22:34 +05:30
parent 527c13b36d
commit 7974dfca0f

View file

@ -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))