tools: Support invoke refresh.sh from any directory

This commit is contained in:
Xiang Xiao 2020-03-13 10:35:18 +08:00 committed by Gregory Nutt
parent 737dcdbe93
commit 4686d7cf57
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ done
MYNAME=`basename $0`
cd $WD
if [ -x ./${MYNAME} ] ; then
cd .. || { echo "ERROR: cd .. failed" ; exit 1 ; }
fi