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

Search php binary in user's $PATH is more flexibel #5

Merged
merged 1 commit into from
May 9, 2017
Merged

Search php binary in user's $PATH is more flexibel #5

merged 1 commit into from
May 9, 2017

Conversation

phaldan
Copy link
Contributor

@phaldan phaldan commented May 9, 2017

When I try to run phpca I get the following error:

$ phpca
bash: phpca: /usr/bin/php: bad interpreter: No such file or directory

Not everyone has the php binary in /usr/bin. For example my binary is located in /usr/local/bin. I replaced the interpreter #!/usr/bin/php in phpca with #!/usr/bin/env php to search dynamically for the php binary in user's $PATH.

@wapmorgan
Copy link
Owner

OK, thanks for addition!

@wapmorgan wapmorgan merged commit 7a8d7cb into wapmorgan:master May 9, 2017
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