summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-05-08 16:08:28 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-05-08 16:15:31 +0200
commit91d6c309b8fe42a83b8b2c9dd1cde4a65202fff1 (patch)
tree39941797b48acea0da0337e11c12caafb6beca44 /bin
parentFix comment (diff)
downloadcore-91d6c309b8fe42a83b8b2c9dd1cde4a65202fff1.tar.gz
core-91d6c309b8fe42a83b8b2c9dd1cde4a65202fff1.zip
make update_pch.sh work with symlinked path or CDPATH set
Change-Id: I059393357c3b0d91e30c16df066fb6dd8ba28ab9
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update_pch.sh3
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