Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude empty provider output. Closes #34 #35

Merged
merged 1 commit into from
Dec 1, 2016
Merged

Conversation

mtdowling
Copy link
Contributor

No description provided.

@mtdowling
Copy link
Contributor Author

@michaelwittig Would you be able to review this?

echo "$(export IFS=$'\n\t '; $cmd)"
local result="$(export IFS=$'\n\t '; $cmd)"
# Do not add empty lines from providers as that would match everything.
if [ "${result}" != "" ]; then

Choose a reason for hiding this comment

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

any reason to not use the built in bash checks?

if [[ -n "${result}" ]]; then

Copy link
Contributor Author

@mtdowling mtdowling Nov 1, 2016

Choose a reason for hiding this comment

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

No reason. I'll update to use that instead. Edit: updated to use -n.

@mtdowling mtdowling force-pushed the fix-empty-providers branch from 3239370 to 4b5f8de Compare November 1, 2016 16:41
@mtdowling mtdowling merged commit 9f772c5 into master Dec 1, 2016
@mtdowling mtdowling deleted the fix-empty-providers branch June 27, 2017 04:59
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