Skip to content

Commit 5cadf1c

Browse files
committed
replace ; by && to make bump commands quick abort on any first error
1 parent 201f4a7 commit 5cadf1c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ bump: bump-check bump-install ## Bump version using specified <VERSION> (call:
187187
$(MSG_E) "Argument 'VERSION' is not specified to bump version"; exit 1 \
188188
)
189189
@$(SHELL) -c ' \
190-
PRE_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2); \
191-
$(CONDA_CMD) $(BUMP_CMD) $(BUMP_XARGS) $(BUMP_VERSION_LEVEL); \
192-
POST_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2); \
193-
echo "Replace $${PRE_RELEASE_TIME} → $${POST_RELEASE_TIME}"; \
194-
$(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG); \
195-
git add $(BUMP_CFG); \
190+
PRE_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2) && \
191+
$(CONDA_CMD) $(BUMP_CMD) $(BUMP_XARGS) $(BUMP_VERSION_LEVEL) && \
192+
POST_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2) && \
193+
echo "Replace $${PRE_RELEASE_TIME} → $${POST_RELEASE_TIME}" && \
194+
$(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG) && \
195+
git add $(BUMP_CFG) && \
196196
git commit --amend --no-edit \
197197
'
198198

0 commit comments

Comments
 (0)