diff options
author | Simone Livieri <simone.livieri@gmail.com> | 2019-05-20 07:07:45 +0900 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-06-06 11:52:25 -0300 |
commit | ead55bc1530914e18b48f80b5d594ffca6306d21 (patch) | |
tree | bf2c873982ce1f0bd5bc2193a1e0e29c14aadb5d | |
parent | 43b7c42ae09526a7c5e91edf796d27aa2c564f00 (diff) | |
download | luarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.tar.gz luarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.tar.bz2 luarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.zip |
fix(configure): remove extra leading '/'
-rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -29,7 +29,12 @@ canonicalpath() { | |||
29 | else | 29 | else |
30 | if cd "$(dirname "$1")" >/dev/null 2>&1 | 30 | if cd "$(dirname "$1")" >/dev/null 2>&1 |
31 | then | 31 | then |
32 | echo "$PWD/$(basename "$1")" | 32 | if [ "$PWD" = "/" ] |
33 | then | ||
34 | echo "/$(basename "$1")" | ||
35 | else | ||
36 | echo "$PWD/$(basename "$1")" | ||
37 | fi | ||
33 | else | 38 | else |
34 | echo "$1" | 39 | echo "$1" |
35 | fi | 40 | fi |