Mask error if nothing to DEFAULT_FROM.

Review URL: http://chromereview.prom.corp.google.com/1188077


git-svn-id: svn://chrome-svn/chromeos/trunk@275 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
djmm@google.com 2009-11-18 02:43:30 +00:00
parent afab3ca65c
commit dbeea200b4

View File

@ -12,7 +12,7 @@
IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images" IMAGES_DIR="${DEFAULT_BUILD_ROOT}/images"
# Default to the most recent image # Default to the most recent image
DEFAULT_FROM="${IMAGES_DIR}/`ls -t $IMAGES_DIR | head -1`" DEFAULT_FROM="${IMAGES_DIR}/$(ls -t $IMAGES_DIR 2>&-| head -1)"
# Script can be run either inside or outside the chroot. # Script can be run either inside or outside the chroot.
if [ $INSIDE_CHROOT -eq 1 ] if [ $INSIDE_CHROOT -eq 1 ]