This commit is contained in:
Michiel Borkent 2020-04-12 21:19:22 +02:00
parent 865f724f56
commit db2281659c

View file

@ -2,7 +2,7 @@
(require '[clojure.java.io :as io])
(defn where [executable]
(defn which [executable]
(let [path (System/getenv "PATH")
paths (.split path (System/getProperty "path.separator"))]
(loop [paths paths]
@ -14,4 +14,4 @@
(recur (rest paths))))))))
(when-let [executable (first *command-line-args*)]
(println (where executable)))
(println (which executable)))