Skip to content

Commit

Permalink
Swallow git errors in shell-out-str
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Dec 12, 2023
1 parent 67b480a commit 12f77b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/git.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(defn ^:private shell-out-str
"Shell helper, calls a cmd and returns it output string trimmed."
[& cmd]
(str/trim (:out (apply p/shell {:out :string} cmd))))
(str/trim (:out (p/check (apply p/sh {:out :string} cmd)))))

#_(shell-out-str "git rev-parse HEAD")
#_(shell-out-str "zonk")
Expand Down

0 comments on commit 12f77b3

Please sign in to comment.