mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
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:
parent
d367ed7a85
commit
6addb3032c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user