Fix latest to be consistent.

Change-Id: Ic4bc37b9c41e231b3a2448a7fabd1f7a0c163ae3

BUG=
TEST=Ran it and it was correct with -m.

Review URL: http://codereview.chromium.org/4017005
This commit is contained in:
Chris Sosa 2010-10-21 16:32:26 -07:00
parent d367ed7a85
commit 6addb3032c

View File

@ -136,8 +136,7 @@ function mount_image() {
# Find the last image built on the board.
if [ ${FLAGS_most_recent} -eq ${FLAGS_TRUE} ] ; then
IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
FLAGS_from="${IMAGES_DIR}/$(ls -t ${IMAGES_DIR} 2>&-| head -1)"
FLAGS_from="$(./get_latest_image.sh --board="${FLAGS_board}")"
fi
# Turn path into an absolute path.