Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prompt before over-writing project.clj

  • Loading branch information...
commit 16a65c59f189cac562d79c50a9caf3d2a46bc911 1 parent e3c10b1
@purcell purcell authored committed
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/leiningen/update.clj
View
11 src/leiningen/update.clj
@@ -21,8 +21,9 @@
(update-artifact p dep-type (str artifact) new-version)
p))
initial
- (map find-updates (dep-type project))))]
- (write-project-clj project
- (->> (read-project-clj project)
- (maybe-add-updates :dependencies)
- (maybe-add-updates :dev-dependencies)))))
+ (map find-updates (dep-type project))))
+ updated-project (doall (->> (read-project-clj project)
+ (maybe-add-updates :dependencies)
+ (maybe-add-updates :dev-dependencies)))]
+ (when (yes-or-no-prompt "Overwrite project.clj?")
+ (write-project-clj project updated-project))))
Please sign in to comment.
Something went wrong with that request. Please try again.