From 668bc95f1512abc517e7e14cd1b54c5a681fd280 Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Wed, 15 Jan 2020 22:34:39 -0500 Subject: [PATCH] [build] Don't invoke bash-specific '[[' '[[' isn't available when $SHELL isn't set to bash, so use expr from coreutils to check for the presence of the device in DFU mode. --- build/targets.device.n0110.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/targets.device.n0110.mak b/build/targets.device.n0110.mak index 7c22b862b..ad3217454 100644 --- a/build/targets.device.n0110.mak +++ b/build/targets.device.n0110.mak @@ -13,7 +13,7 @@ $(BUILD_DIR)/test.external_flash.write.$(EXE): $(BUILD_DIR)/quiz/src/test_ion_ex @echo " button on the back of your device." $(Q) until $(PYTHON) build/device/dfu.py -l | grep -E "0483:a291|0483:df11" > /dev/null 2>&1; do sleep 2;done $(eval DFU_SLAVE := $(shell $(PYTHON) build/device/dfu.py -l | grep -E "0483:a291|0483:df11")) - $(Q) if [[ "$(DFU_SLAVE)" == *"0483:df11"* ]]; \ + $(Q) if expr "$(DFU_SLAVE)" : ".*0483:df11.*" > /dev/null; \ then \ $(PYTHON) build/device/dfu.py -u $(word 2,$^); \ sleep 2; \