The realpath function returns a slightly wrong path for top-level directories. realpath /root gives //root. This can cause real issues and has led me on a wild goose chase yesterday. (https://github.com/lynxkite/lynxkite/issues/200)
Maybe I should have filed a bug instead of a pull request. I'm not sure this is the best fix. And this same function is repeated in a few places. (ash-template in this repo, and another script in the sbt repo, at least.) Let me know what's your preference.
The
realpath
function returns a slightly wrong path for top-level directories.realpath /root
gives//root
. This can cause real issues and has led me on a wild goose chase yesterday. (https://github.com/lynxkite/lynxkite/issues/200)Maybe I should have filed a bug instead of a pull request. I'm not sure this is the best fix. And this same function is repeated in a few places. (
ash-template
in this repo, and another script in thesbt
repo, at least.) Let me know what's your preference.Thanks!