Permalink
Browse files

Merge pull request #561 from jaceklaskowski/master

Patch for #559: Provide leiningen-version function
  • Loading branch information...
2 parents c7f7867 + c3a6ee0 commit f39c47b8e2f533d79e2ea3c67229aa89013ba0fe @technomancy committed May 4, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 leiningen-core/src/leiningen/core/main.clj
@@ -147,4 +147,10 @@ or by executing \"lein upgrade\". ")
(when-not (re-find #"Suppressed exit:" (or (.getMessage e) ""))
(.printStackTrace e))
(exit 1)))))
- (exit 0))
+ (exit 0))
+
+(defn
+ leiningen-version
+ "Returns leiningen version as a string."
+ []
+ (System/getenv "LEIN_VERSION"))

0 comments on commit f39c47b

Please sign in to comment.