-
Notifications
You must be signed in to change notification settings - Fork 2
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
The wrapper doesn't work on macOS #13
Comments
I think it makes sense to use PHP instead. If it's not available the script won't work anyway. |
Something like PREPEND="$(php -n -r 'echo realpath(dirname(realpath($argv[1])) . "/../src/prepend.php");' -- "$0")" should do the trick I suppose. |
Fixed in 1.6.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unlike GNU
readlink
where-f
is:In BSD readlink it's:
The
dirname
error is a side effect of that sincereadlink
called on a non-link results in an empty string passed todirname
.The wrapper would be more robust if it used
set -e
and quoted all variables:Then at least it wouldn't try to call
dirname
with an empty value which is the result of the error in the subshell.The text was updated successfully, but these errors were encountered: