| Index: get_latest_image.sh
|
| diff --git a/get_latest_image.sh b/get_latest_image.sh
|
| index 3cac3ecc73dc64cc019aee74985846a9f4279d6c..020cadf9dca0335bedf7af4c5370bc5100977b3f 100755
|
| --- a/get_latest_image.sh
|
| +++ b/get_latest_image.sh
|
| @@ -26,6 +26,10 @@ if [ -z "$FLAGS_board" ] ; then
|
| fi
|
|
|
| IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images/${FLAGS_board}"
|
| +
|
| +# If there are no images, return nothing
|
| +[ -d $IMAGES_DIR ] || exit 0
|
| +
|
| # Default to the most recent image
|
| DEFAULT_FROM="${IMAGES_DIR}/`ls -t $IMAGES_DIR | head -1`"
|
|
|
|
|