Skip to content

Comments

HDDS-9180. Improve redirection operator in testlib.sh#5192

Closed
Galsza wants to merge 1 commit intoapache:masterfrom
Galsza:HDDS-9180
Closed

HDDS-9180. Improve redirection operator in testlib.sh#5192
Galsza wants to merge 1 commit intoapache:masterfrom
Galsza:HDDS-9180

Conversation

@Galsza
Copy link
Contributor

@Galsza Galsza commented Aug 16, 2023

Use cmd >> file 2>&1 instead of cmd &>> file for more portable shell script

https://issues.apache.org/jira/browse/HDDS-9180

How was this patch tested?

Rebuilt the project and run the tests locally without error message. Container logs are still produced properly

@Galsza Galsza marked this pull request as draft August 16, 2023 15:41
@Galsza
Copy link
Contributor Author

Galsza commented Aug 16, 2023

Converted it into a draft because we are not quite sure just yet if it needs to be changed or if it's a local problem on multiple environments. @ChenSammi also encountered this issue.

@Galsza
Copy link
Contributor Author

Galsza commented Aug 17, 2023

Closing this pull request as &>> was something added in bash 4.0 and I was using an earlier version.

@Galsza Galsza closed this Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant