diff --git a/src/main/frontend/fs.cljs b/src/main/frontend/fs.cljs index 9ffe5c8aa..a73321134 100644 --- a/src/main/frontend/fs.cljs +++ b/src/main/frontend/fs.cljs @@ -115,12 +115,14 @@ (defn mkdir-if-not-exists [dir] - (when dir - (util/p-handle - (stat dir nil) - (fn [_stat]) - (fn [error] - (mkdir! dir))))) + (-> + (when dir + (util/p-handle + (stat dir nil) + (fn [_stat]) + (fn [error] + (mkdir! dir)))) + (p/catch (fn [_error] nil)))) (defn create-if-not-exists ([repo dir path] diff --git a/src/main/frontend/handler/repo.cljs b/src/main/frontend/handler/repo.cljs index 5560cdbf3..087acb646 100644 --- a/src/main/frontend/handler/repo.cljs +++ b/src/main/frontend/handler/repo.cljs @@ -87,7 +87,7 @@ [repo-url] (spec/validate :repos/url repo-url) (let [repo-dir (config/get-repo-dir repo-url) - path (config/get-custom-css-path) + path (str config/app-name "/" config/custom-css-file) file-path (str "/" path) default-content ""] (p/let [_ (fs/mkdir-if-not-exists (str repo-dir "/" config/app-name))