diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-09-27 13:21:32 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-09-27 13:06:38 +0000 |
commit | 5654828b228407c5e3f1a999f0884daf1b69725c (patch) | |
tree | 0e0af36f3f8258e603d91b85faaa46bd34ce22cd | |
parent | 75abb5e7c333ad4d5f1c4cc1dba5a5b2518697b9 (diff) | |
download | qt-creator-5654828b228407c5e3f1a999f0884daf1b69725c.tar.gz |
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>
-rwxr-xr-x | bin/qtcreator.sh | 2 |
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 |