chromeos-common.sh: Avoid error on systems without MMC devices

On a system without any MMC devices, list_mmc_disks produces an error:

cat: /sys/block/mmcblk*/size: No such file or directory
/usr/share/misc/chromeos-common.sh: line 148: [: : integer expression expected

Protect against the case where the glob does not match anything, using
the same logic already applied to disk devices.

BUG=None
TEST=image_to_usb.sh on a system with no MMC devices

Change-Id: Iafbd37da52158de47ada8736565b82be6add0628
Reviewed-on: https://chromium-review.googlesource.com/205410
Tested-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Josh Triplett <josh@joshtriplett.org>
1 file changed