Skip to content

Conversation

fsundermeyer
Copy link
Member

When read reaches end-of-file instead of end-of-line, it does read in the
data and assign it to the variables, but it exits with a non-zero status.
Fixed this by passing the file via grep ""
Fixes #553

When read reaches end-of-file instead of end-of-line, it does read in the
data and assign it to the variables, but it exits with a non-zero status.
Fixed this by passing the file via grep ""
Fixes #553
@fsundermeyer fsundermeyer requested a review from a user March 22, 2021 17:31
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This fixes the issue for me, thanks!

The only issue I see is a small stylistic one: Using grep to add a newline is a bit non-obvious. Imo, something like this would be uglier but more obvious: echo -e "$(cat $CFG)"

@fsundermeyer fsundermeyer merged commit 07d3e87 into main Mar 26, 2021
@ghost ghost deleted the fix_ignore_nonewline_in_config branch April 6, 2021 11:50
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.

Missing newline character at end of DC file leads to last line of DC file being ignored
1 participant