Merge "gettop: fix symlink detection"

This commit is contained in:
Ying Wang 2014-02-14 21:20:17 +00:00 committed by Gerrit Code Review
commit 872d3c2c6a

View file

@ -602,7 +602,7 @@ function gettop
T= T=
while [ \( ! \( -f $TOPFILE \) \) -a \( $PWD != "/" \) ]; do while [ \( ! \( -f $TOPFILE \) \) -a \( $PWD != "/" \) ]; do
\cd .. \cd ..
T=`PWD= /bin/pwd` T=`PWD= /bin/pwd -P`
done done
\cd $HERE \cd $HERE
if [ -f "$T/$TOPFILE" ]; then if [ -f "$T/$TOPFILE" ]; then