summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2012-07-24 16:28:29 +0800
committerGerrit <chrome-bot@google.com>2012-07-24 23:05:17 -0700
commit89f6448982349c3f9b7f9fed61a9fe133d4c3aa4 (patch)
tree339f80df1bdb76940ea6807ca20653eb57fddab0
parentf94f8a01e1a62dbba5a6b566535f1aa47192e8d0 (diff)
downloadchrome-ec-89f6448982349c3f9b7f9fed61a9fe133d4c3aa4.tar.gz
Change the path check of --image in util/flash_ec.
BUG=None TEST=test on link. % util/flash_ec --board=link --image=a/random/file/path flash successfully. Change-Id: I82980783585ac7d2979cf195b7eb820dbf072156 Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28252 Commit-Ready: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com> Tested-by: Yung-Chieh Lo <yjlou%chromium.org@gtempaccount.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rwxr-xr-xutil/flash_ec2
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}"