-
Notifications
You must be signed in to change notification settings - Fork 62
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
realpath doesn't exist on OSX #90
Comments
Some good alternatives here... http://stackoverflow.com/q/3572030/3191 |
Of those http://stackoverflow.com/a/18443300/441757 looks like those most useful: #!/bin/sh
realpath() {
OURPWD=$PWD
cd "$(dirname "$1")"
LINK=$(readlink "$(basename "$1")")
while [ "$LINK" ]; do
cd "$(dirname "$LINK")"
LINK=$(readlink "$(basename "$1")")
done
REALPATH="$PWD/$(basename "$1")"
cd "$OURPWD"
echo "$REALPATH"
}
realpath "$@" I’ll open a PR with a patch that uses that instead. |
OK I see now a complication is that the code is actually using
…so will also need to see if we can emulate that. |
Apparently Ubuntu doesn't have --relative-to either... going to try a few fixes here. |
realpath is not present by default on macOS, and on Ubuntu, it does not support --relative-to. Instead, use a more manual method of computing relative paths. Closes #90.
realpath is not present by default on macOS, and on Ubuntu, it does not support --relative-to. Instead, use a more manual method of computing relative paths. Closes #90.
…. See whatwg/html-build#90" This reverts commit f08dbc0.
…. See whatwg/html-build#90" This reverts commit f08dbc0.
But it can be installed via
The text was updated successfully, but these errors were encountered: