diff options
author | Raul E Rangel <rrangel@chromium.org> | 2019-10-04 11:27:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-04 22:15:44 +0000 |
commit | 53690d93cfed7649cfd85c512848d41f30d40682 (patch) | |
tree | 261219bda44af156904a72d02ae0f55d672de828 | |
parent | 1a078e86ab6523d90d8ecc975466c446c030aad0 (diff) | |
download | chrome-ec-53690d93cfed7649cfd85c512848d41f30d40682.tar.gz |
flash_ec: Support image name with spaces
BUG=none
BRANCH=none
TEST=Flashed a zork ec image with a space in the name
Change-Id: I9915f04f222de7a34e757fddcb30563d66093c71
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1842033
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
-rwxr-xr-x | util/flash_ec | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/flash_ec b/util/flash_ec index 4f886e3480..32d6203bf5 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -886,7 +886,7 @@ function flash_flashrom() { if [[ "${CHIP}" =~ ^npcx(|_int)_spi$ ]] ; then { # Patch temp image up to SPI_SIZE - cat $IMG + cat "$IMG" if [[ ${IMG_SIZE} -lt ${SPI_SIZE} ]] ; then dd if=/dev/zero bs=${PATCH_SIZE} count=1 | \ tr '\0' '\377' @@ -898,7 +898,7 @@ function flash_flashrom() { dd if=/dev/zero bs=${PATCH_SIZE} count=1 | \ tr '\0' '\377' fi - cat $IMG + cat "$IMG" } > $T fi |