Skip to content

Conversation

@kretep
Copy link
Contributor

@kretep kretep commented Jun 16, 2018

to make sure the output is strictly empty when voltage is not available.

Copy link
Contributor

@scottleibrand scottleibrand left a comment

Choose a reason for hiding this comment

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

Could we instead do an if check and only echo $RESPONSE if it’s non-empty? Files without trailing new lines are annoying.

to make sure the output is strictly empty when voltage is not available.
@kretep kretep force-pushed the prevent-newline branch from ba2274b to 3bd0b9d Compare June 17, 2018 11:06
@kretep
Copy link
Contributor Author

kretep commented Jun 17, 2018

@scottleibrand I updated to only echo the RESPONSE when it has no white-spaces

@scottleibrand scottleibrand merged commit cb51bef into openaps:master Jun 18, 2018
cluckj referenced this pull request in cluckj/openaps-menu Jun 19, 2018
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.

2 participants