diff --git a/deps.clj b/deps.clj index 60743582..5e10c172 160000 --- a/deps.clj +++ b/deps.clj @@ -1 +1 @@ -Subproject commit 60743582590fdad4e7d0669f0989d1f82a75d48d +Subproject commit 5e10c172facf30e938191349883fbf27033c486c diff --git a/src/babashka/impl/tasks.clj b/src/babashka/impl/tasks.clj index 018f6b60..552a1d48 100644 --- a/src/babashka/impl/tasks.clj +++ b/src/babashka/impl/tasks.clj @@ -13,6 +13,12 @@ (when (not (zero? exit-code)) (System/exit exit-code)))) +(def default-opts + {:in :inherit + :out :inherit + :err :inherit + :shutdown p/destroy-tree}) + (defn shell [cmd & args] (let [[opts cmd args] (if (map? cmd) @@ -25,9 +31,7 @@ opts)] (exit-non-zero (p/process (into (p/tokenize cmd) args) - (merge {:in :inherit - :out :inherit - :err :inherit} opts))))) + (merge default-opts opts))))) (defn clojure [cmd & args] (let [[opts cmd args] @@ -41,9 +45,7 @@ opts)] (exit-non-zero (deps/clojure (into (p/tokenize cmd) args) - (merge {:in :inherit - :out :inherit - :err :inherit} opts))))) + (merge default-opts opts))))) (defn -wait [res] (when res