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

Silent version checks #413

Merged
merged 1 commit into from
Mar 7, 2019
Merged

Silent version checks #413

merged 1 commit into from
Mar 7, 2019

Conversation

ilammy
Copy link
Collaborator

@ilammy ilammy commented Mar 6, 2019

Silence output to stderr if there is no language support installed. Most of the version checks already redirect stderr to /dev/null but some of them merge stdout and stderr due to historical reasons. In this case check whether a binary is available before trying to execute it.

This makes sure that "make" output does not contain unexpected messages like

/bin/bash: python2 not found
/bin/bash: php not found

Silence output to stderr if there is no language support installed.
Most of the version checks already redirect stderr to /dev/null but some
of them merge stdout and stderr due to historical reasons. In this case
check whether a binary is available before trying to execute it.

This makes sure that "make" output does not contain unexpected messages
like

    /bin/bash: python2 not found
    /bin/bash: php not found
@ilammy ilammy added the infrastructure Automated building and packaging label Mar 6, 2019
Copy link
Contributor

@vixentael vixentael left a comment

Choose a reason for hiding this comment

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

LGTM

if @shadinua approves syntax, I'm happy with this change

@vixentael vixentael self-requested a review March 6, 2019 01:04
@ilammy ilammy merged commit 8530391 into cossacklabs:master Mar 7, 2019
@ilammy ilammy deleted the silent-checks branch March 7, 2019 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Automated building and packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants