doc
This commit is contained in:
parent
865f724f56
commit
db2281659c
1 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue