Skip to content

Commit

Permalink
Update checkouts path creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Ashton committed Apr 21, 2016
1 parent 513d1db commit 2700f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leiningen/checkout/rm.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(defn rm
"[pattern]: Remove all checkouts. If PATTERN is specified, only checkouts matching that pattern will be removed"
[{:keys [checkout root] :as project} & [pattern]]
(let [current-checkouts (fs/list-dir (str root File/separator "checkouts"))
(let [current-checkouts (fs/list-dir (fs/file root "checkouts"))
candidate-pattern (if pattern (re-pattern (str ".*" pattern ".*")) #".*")
candidate-matcher (partial re-matches candidate-pattern)
matching-checkouts (filter candidate-matcher current-checkouts)]
Expand Down

0 comments on commit 2700f5b

Please sign in to comment.