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

Updated patch exec location check to attempt fallback to global "patch" #27

Closed
wants to merge 2 commits into from

Conversation

zeyus
Copy link

@zeyus zeyus commented May 19, 2017

fixes it failing on windows if patch is actually available in the PATH

throw new Exception("Cannot find the 'patch' executable command - use your o/s package manager like 'sudo yum install patch'");
// See if patch is in path.
$exitCode = $output = null;
exec('patch -v', $output, $exitCode);
Copy link
Member

Choose a reason for hiding this comment

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

Why don't you replace which patch with patch -v in the first place?

Copy link
Contributor

Choose a reason for hiding this comment

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

looks like he had the same problem as me, the current code with which does not work on windows (at least it fails on my windows system). my patch is inside the path so it would work otherwise.

@CybotTM CybotTM added the conflict PR has conflicts which needs to be resolved label Dec 24, 2021
@CybotTM
Copy link
Member

CybotTM commented Dec 12, 2022

Closing due to being outdated/abandoned.

@CybotTM CybotTM closed this Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict PR has conflicts which needs to be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants