-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Use _command_exists everywhere
#1938
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
Conversation
108da26 to
955fa2f
Compare
50988ae to
cd9654e
Compare
cd9654e to
b0e29a6
Compare
_command_exists throughout_command_exists throughout
|
Rebased on current master and ready for review. 😃 |
_command_exists throughout_command_exists everywhere
|
@cornfeedhobo you said you might have time this weekend, so here's a PR 😆 |
|
@gaelicWizard I like the spirit of this PR, but I'm not comfortable merging it since there are so many other changes that are unrelated. I'm not going to block the PR in case @NoahGorny or @davidpfarrell want to move this forward, but I would prefer to limit these type of horizontal clean-ups to a singular change, because it spans so many files. If you'd like to open up another PR that only changes As always, thanks so much and let me know if I can help somehow. |
|
Hi All ! So @cornfeedhobo is right there really appears to be a lot of unrelated changes here. (assuming yes) I think it might be best to tag ALL stacked PRs as [edit] Clarified final vs casual reviews ... |
_command_exists everywhere_command_exists everywhere
|
Sounds fair! I'll split this up 👍 |
070e588 to
e73b9f0
Compare
_command_exists everywhere_command_exists everywhere
e73b9f0 to
55baece
Compare
|
@cornfeedhobo, @davidpfarrell, I've split out all the files that had more than just |
Remove subshell and just use a regular `if`
076bf2d to
fb6e05d
Compare
cornfeedhobo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! Thank you for the hard work!!
cc @NoahGorny
NoahGorny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done @gaelicWizard, and of course thanks for the review @cornfeedhobo ❤️
Description
Use
_command_existsinstead ofcommand -v xx &>/dev/null(and similar) throughout the code base.Motivation and Context
I grep'd for
typeandcommand -vanddeclare -Fand fixed everything I could find. This closes #1632.How Has This Been Tested?
All tests pass, but real testing hasn't been done as of this writing.
Types of changes
Checklist:
clean_files.txtand formatted it usinglint_clean_files.sh.