aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-09-27 13:21:32 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-09-27 13:06:38 +0000
commit5654828b228407c5e3f1a999f0884daf1b69725c (patch)
tree0e0af36f3f8258e603d91b85faaa46bd34ce22cd /bin
parent75abb5e7c333ad4d5f1c4cc1dba5a5b2518697b9 (diff)
fix hand-crafted symlink resolution
the base directory for making the symlink target absolute is of course the dirname of the original file, not the target itself. Change-Id: If5171ead8da0aa2afcaa8ccd6365771441440146 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/qtcreator.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/qtcreator.sh b/bin/qtcreator.sh
index 454224c26e..794882ec8c 100755
--- a/bin/qtcreator.sh
+++ b/bin/qtcreator.sh
@@ -26,8 +26,8 @@ if test -L "$me"; then
me=`readlink -nf "$me"`
else
# No readlink(1), so let's try ls -l
- me=`ls -l "$me" | sed 's/^.*-> //'`
base=`dirname "$me"`
+ me=`ls -l "$me" | sed 's/^.*-> //'`
me=`makeAbsolute "$me" "$base"`
fi
fi