mirror of https://github.com/ArduPilot/ardupilot
autotest: prevent duplication locations
This commit is contained in:
parent
f3ee7a9a85
commit
9672b525f5
|
@ -342,7 +342,7 @@ popd
|
|||
|
||||
# get the location information
|
||||
if [ -z $CUSTOM_LOCATION ]; then
|
||||
SIMHOME=$(cat $autotest/locations.txt | grep -i "^$LOCATION=" | cut -d= -f2)
|
||||
SIMHOME=$(cat $autotest/locations.txt | grep -i "^$LOCATION=" | head -1 | cut -d= -f2)
|
||||
else
|
||||
SIMHOME=$CUSTOM_LOCATION
|
||||
LOCATION="Custom_Location"
|
||||
|
|
Loading…
Reference in New Issue