aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimone Livieri <simone.livieri@gmail.com>2019-05-20 07:07:45 +0900
committerHisham Muhammad <hisham@gobolinux.org>2019-06-06 11:52:25 -0300
commitead55bc1530914e18b48f80b5d594ffca6306d21 (patch)
treebf2c873982ce1f0bd5bc2193a1e0e29c14aadb5d
parent43b7c42ae09526a7c5e91edf796d27aa2c564f00 (diff)
downloadluarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.tar.gz
luarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.tar.bz2
luarocks-ead55bc1530914e18b48f80b5d594ffca6306d21.zip
fix(configure): remove extra leading '/'
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index e64eac28..495a11e3 100755
--- a/configure
+++ b/configure
@@ -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