Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed May 21, 2021
1 parent 480f695 commit 3e50b7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/borkdude/deps.clj
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ For more info, see:
(println (format "Could not find %s" tools-jar))
(clojure-tools-jar-download tools-dir)
tools-jar))
exec? (= :exec (:mode args))
mode (:mode args)
exec? (= :exec mode)
exec-cp (when exec?
(.getPath exec-jar))
deps-edn
Expand Down Expand Up @@ -587,7 +588,7 @@ For more info, see:
main-opts)
main-args (filterv some? main-args)
main-args (into main-args (:args args))]
(when (and (identical? :repl (:mode args))
(when (and (= :repl mode)
(pos? (count (:args args))))
(warn "WARNING: Use of -A with clojure.main is deprecated, use -M instead"))
(*process-fn* main-args)))))))

0 comments on commit 3e50b7b

Please sign in to comment.