From 5cadf1ca27c5a2356ad284a18aab7efd4b6a4f94 Mon Sep 17 00:00:00 2001 From: Francis Charette-Migneault Date: Thu, 1 Sep 2022 10:02:09 -0400 Subject: [PATCH] replace ; by && to make bump commands quick abort on any first error --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6291edc12..e19c9b314 100644 --- a/Makefile +++ b/Makefile @@ -187,12 +187,12 @@ bump: bump-check bump-install ## Bump version using specified (call: $(MSG_E) "Argument 'VERSION' is not specified to bump version"; exit 1 \ ) @$(SHELL) -c ' \ - PRE_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2); \ - $(CONDA_CMD) $(BUMP_CMD) $(BUMP_XARGS) $(BUMP_VERSION_LEVEL); \ - POST_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2); \ - echo "Replace $${PRE_RELEASE_TIME} → $${POST_RELEASE_TIME}"; \ - $(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG); \ - git add $(BUMP_CFG); \ + PRE_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2) && \ + $(CONDA_CMD) $(BUMP_CMD) $(BUMP_XARGS) $(BUMP_VERSION_LEVEL) && \ + POST_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2) && \ + echo "Replace $${PRE_RELEASE_TIME} → $${POST_RELEASE_TIME}" && \ + $(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG) && \ + git add $(BUMP_CFG) && \ git commit --amend --no-edit \ '