Skip to content

Commit

Permalink
Simplify run-repl
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed May 2, 2024
1 parent af61d56 commit 44d3002
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/eval/deps_try.clj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@

(def init-cp (get-classpath))

(defn- run-repl [opts & args]
(defn- run-repl [& args]
#_(prn ::run-clojure :opts opts :args args)
(let [[opts args] (if (map? opts) [opts args] [nil (cons opts args)])]
(fs/with-temp-dir [tmp {}]
(apply p/exec (merge {:err :string :dir (str tmp)} opts)
"clojure" args))))
(fs/with-temp-dir [tmp {}]
(apply p/exec {:dir (str tmp)}
"clojure" args)))

(def ^:private dev? (nil? (io/resource "VERSION")))

Expand Down

0 comments on commit 44d3002

Please sign in to comment.