diff options
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-x | util/flash_ec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index a086ee12d9..6b9f45a7b0 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -39,7 +39,7 @@ LOCAL_BUILD=${SRC_ROOT}/platform/ec/build/${BOARD}/${EC_FILE} function ec_image() { # No image specified on the command line, try default ones if [[ ! -z "${FLAGS_image}" ]] ; then - if [ ! -x "${FLAGS_image}" ]; then + if [ ! -r "${FLAGS_image}" ]; then die "Invalid image path : ${FLAGS_image}" fi echo "${FLAGS_image}" |