Skip to content

Commit

Permalink
replace ; by && to make bump commands quick abort on any first error
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Sep 1, 2022
1 parent 201f4a7 commit 5cadf1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ bump: bump-check bump-install ## Bump version using specified <VERSION> (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 \
'

Expand Down

0 comments on commit 5cadf1c

Please sign in to comment.