This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-02
Channels
- # announcements (2)
- # babashka (9)
- # calva (8)
- # cider (2)
- # clj-kondo (3)
- # clojure (113)
- # clojure-austin (1)
- # clojure-dev (27)
- # clojure-europe (11)
- # clojure-germany (2)
- # clojure-losangeles (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojure-uk (32)
- # clojuredesign-podcast (4)
- # core-async (16)
- # core-typed (45)
- # cursive (5)
- # data-science (1)
- # datomic (7)
- # events (1)
- # gratitude (2)
- # hugsql (1)
- # hyperfiddle (7)
- # integrant (4)
- # keechma (10)
- # leiningen (4)
- # malli (1)
- # missionary (14)
- # off-topic (62)
- # onyx (8)
- # other-languages (21)
- # pathom (1)
- # reitit (4)
- # releases (2)
- # shadow-cljs (35)
- # squint (1)
- # transit (1)
For some reason this:`(shell "git diff --quiet --cached -- || git commit -m \"Prepared for new release.\"")` doesn't work, but does when I run it as a command in my shell.
Alternatively, is there a way to have bb task not stop when git commit exits with an error? My problem is if there is nothing to commit, git commit exits in an error, and that ends my build task.
<https://book.babashka.org/#_shell> talks about a :continue
option for not throwing on a non-zero exit code - that might do what you're looking for
@U0K064KQV note that ||
etc don't work automatically with shell
. it does not execute via bash, it just starts git
and provides all the rest as arguments to git