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

Replace type with command -v in install script #2892

Merged
merged 1 commit into from May 30, 2019

Conversation

johannes-climacus
Copy link
Contributor

@@ -18,7 +18,7 @@ cleanup() {
trap cleanup EXIT INT QUIT TERM

require_util() {
type "$1" > /dev/null 2>&1 || command -v "$1" > /dev/null 2>&1 ||
command -v "$1" > /dev/null 2>&1 || command -v "$1" > /dev/null 2>&1 ||
Copy link
Member

@edolstra edolstra May 27, 2019

Choose a reason for hiding this comment

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

It was already doing command -v as a fallback, so now it's doing command -v || command -v which is redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing out the redundancy, it's removed.

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.

None yet

2 participants