Skip to content

Commit

Permalink
calculate filename in original release-base
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtized committed Oct 29, 2024
1 parent 164b176 commit 089a530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bb/tasks.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
(defn build-static-site [& opts]
(let [{:keys [build-dir from to release]} (default-opts opts)
js-dir (str to "/js")
release-base (fs/strip-ext release)
release-glob (str "/" (fs/file-name release-base) "*")]
release-base (fs/filename (fs/strip-ext release))
release-glob (str "/" release-base "*")]
(fs/delete-tree to)
(println "Creating" to "from" from "with javascript")
(fs/copy-tree from to)
Expand Down

0 comments on commit 089a530

Please sign in to comment.