mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 07:52:19 +00:00
show absolute path to user when aborting
This commit is contained in:
@@ -18,11 +18,12 @@ LICENSE
|
|||||||
echo
|
echo
|
||||||
echo Compile then run the Java test.
|
echo Compile then run the Java test.
|
||||||
|
|
||||||
testdir=$(dirname $0)
|
testdir=$(readlink -fn `dirname $0`)
|
||||||
|
thisdir=$(readlink -fn `pwd`)
|
||||||
|
|
||||||
if [[ "$testdir" != "." ]]; then
|
if [[ "$testdir" != "$thisdir" ]]; then
|
||||||
echo error: must be run from inside the ./tests directory
|
echo error: must be run from inside the ${testdir} directory
|
||||||
echo you ran it from `pwd`
|
echo you ran it from ${thisdir}
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user