From 5654828b228407c5e3f1a999f0884daf1b69725c Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 27 Sep 2016 13:21:32 +0200 Subject: 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 --- bin/qtcreator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.1