From: Bart Van Assche Date: Thu, 3 Feb 2011 17:49:07 +0000 (+0000) Subject: vg-in-place: made sure that soft links to this script work fine too. X-Git-Tag: svn/VALGRIND_3_7_0~683 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93f6b2653b10e1c270422d0d44e42e02b6db9f65;p=thirdparty%2Fvalgrind.git vg-in-place: made sure that soft links to this script work fine too. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11521 --- diff --git a/vg-in-place b/vg-in-place index a49036de99..b364c10dba 100755 --- a/vg-in-place +++ b/vg-in-place @@ -4,6 +4,9 @@ # $0 (the name of the file) and $PWD. dollarzero=$0 +if [ -h "${dollarzero}" ]; then + dollarzero=`readlink "${dollarzero}"` +fi if [ "${dollarzero#/}" = "${dollarzero}" ]; then