diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-05-08 16:08:28 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-05-08 16:15:31 +0200 |
commit | 91d6c309b8fe42a83b8b2c9dd1cde4a65202fff1 (patch) | |
tree | 39941797b48acea0da0337e11c12caafb6beca44 /bin | |
parent | 3d6e2081f0ab71ad4515fed864c3f36566e466c3 (diff) |
make update_pch.sh work with symlinked path or CDPATH set
Change-Id: I059393357c3b0d91e30c16df066fb6dd8ba28ab9
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/update_pch.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/update_pch.sh b/bin/update_pch.sh index 95457e561d32..c4a5f3d6d88a 100755 --- a/bin/update_pch.sh +++ b/bin/update_pch.sh @@ -12,7 +12,8 @@ # Invoke: make cmd cmd="./bin/update_pch.sh [..]" root=`dirname $0` -root=`cd $root/.. && pwd` +root=`cd $root/.. >/dev/null && pwd` +root=`readlink -f $root` cd $root if test -z "$1"; then |