fix "scripts: zephyr_flash_debug: flash like openocd.sh"

All commands need to have quotation marks stripped.

Fixes: bee6f9e73 ("scripts: zephyr_flash_debug: flash like openocd.sh")
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
This commit is contained in:
Marti Bolivar 2017-10-13 11:00:31 -04:00 committed by Anas Nashif
parent 5ab2cb96eb
commit 73d560e412
1 changed files with 4 additions and 0 deletions

View File

@ -587,7 +587,11 @@ class OpenOcdBinaryFlasher(ZephyrBinaryFlasher):
openocd = os.environ.get('OPENOCD', 'openocd')
default_path = os.environ.get('OPENOCD_DEFAULT_PATH', None)
pre_cmd = os.environ.get('OPENOCD_PRE_CMD', None)
if pre_cmd is not None:
pre_cmd = pre_cmd.strip('"')
post_cmd = os.environ.get('OPENOCD_POST_CMD', None)
if post_cmd is not None:
post_cmd = post_cmd.strip('"')
return OpenOcdBinaryFlasher(bin_name, zephyr_base, arch, board_name,
load_cmd, verify_cmd, openocd=openocd,