Mike Frysinger c9dfcaf480 get_latest_image: ignore files when searching for latest images
If files are in the board build dir with newer mtimes than the dirs
or symlinks, then the get_latest_image code selects the file instead
of the latest dir.  And then it all falls down:
	Cannot find image directory /path/to/file

So tweak the look up code by having bash do the expansion of dirs
only, and then let ls do the mtime sorting.

BUG=None
TEST=`./image_to_usb.sh --board=x86-alex -y --to=/dev/sdb` still works after deleting "latest"
Change-Id: Ic06a2ddd0206748d35cb7762009df67a267d4746
Reviewed-on: http://gerrit.chromium.org/gerrit/10258
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
2011-10-19 19:14:42 -07:00
2010-09-09 14:25:33 -07:00
2011-08-26 13:04:29 -07:00
2011-09-08 17:05:10 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 166 MiB
Languages
Shell 93.1%
Python 6.9%