Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

e2e: Fix shfmt error code #2673

Merged
merged 1 commit into from
Dec 10, 2019
Merged

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Dec 10, 2019

Using parenthesis (for ...; do ( foo; exit 1 ); done) causes an error code in a subshell
but doesn't stop the loop.

Using braces ( for ...; do { foo; exit 1; }; done) groups the commands and also
exits the loop, because it doesn't execute in a subshell.

Using parenthesis (`for ...; do ( foo; exit 1 ); done`) causes an error code in a subshell
but doesn't stop the loop.

Using braces ( `for ...; do { foo; exit 1; }; done`) groups the commands and also
exists the loop, because it doesn't execute in a subshell.
@2opremio 2opremio requested a review from hiddeco December 10, 2019 11:13
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎣

@2opremio 2opremio merged commit 63e70b2 into fluxcd:master Dec 10, 2019
@2opremio 2opremio added this to the 1.17.0 milestone Dec 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants