mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
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>
Description
Languages
Shell
93.1%
Python
6.9%