Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: mount_gpt_image.sh

Issue 4017005: Fix latest to be consistent. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mount_gpt_image.sh
diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh
index be95dc5dcf3d0fda1e94cd27963f02b7f5ac967a..bb8fd7ec2ca2558263df314841fbcd048c67c1e9 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698