From 6addb3032c7db10a9311eefcfacb39fa673b2d1f Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Thu, 21 Oct 2010 16:32:26 -0700 Subject: [PATCH] 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 --- mount_gpt_image.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh index be95dc5dcf..bb8fd7ec2c 100755 --- a/mount_gpt_image.sh +++ b/mount_gpt_image.sh @@ -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.