Fix the BASH functions to use the USE_CENTER option correctly

This commit is contained in:
Bradlee Speice 2012-07-13 10:36:06 -04:00
parent 58cf76119c
commit 1eac29e12d

View File

@ -138,7 +138,7 @@ click_i ()
for x in $@
do
if [ x$CENTER != "x" ]; then
if [ x$USE_CENTER != "x" ]; then
center="c"
else
center=""
@ -183,13 +183,13 @@ image_location ()
else
TOLERANCE_OPTION="-t"
fi
if [ -n "$CENTER" ]; then
USE_CENTER="--center"
if [ -n "$USE_CENTER" ]; then
CENTER="--center"
else
USE_CENTER=""
CENTER=""
fi
MATCH=`$CVAMATCH $TOLERANCE_OPTION $TOLERANCE $USE_CENTER --x-root $COMMAND_LINE`
MATCH=`$CVAMATCH $TOLERANCE_OPTION $TOLERANCE $CENTER --x-root $COMMAND_LINE`
RETURN_CODE=$?
out "$MATCH"
MATCH=`echo $MATCH | head -n1`