Merge "Guard for worlddump in case LOGDIR is undefined"

This commit is contained in:
Jenkins 2014-08-19 20:39:27 +00:00 committed by Gerrit Code Review
commit f8f97a677a

View File

@ -631,7 +631,11 @@ function exit_trap {
if [[ $r -ne 0 ]]; then
echo "Error on exit"
./tools/worlddump.py -d $LOGDIR
if [[ -z $LOGDIR ]]; then
./tools/worlddump.py
else
./tools/worlddump.py -d $LOGDIR
fi
fi
exit $r