From 9065f8358cc483d8698d1e0f25000b8abd4d3820 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 3 Sep 2019 07:56:49 +0200 Subject: [PATCH] tools/openocd: correctly check reset_config variable value This avoids the following warning message when running OpenOCD: 'openocd.sh: line 124: [: : integer expression expected' --- dist/tools/openocd/openocd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/tools/openocd/openocd.sh b/dist/tools/openocd/openocd.sh index 1e41add8e5..e6776bbee1 100755 --- a/dist/tools/openocd/openocd.sh +++ b/dist/tools/openocd/openocd.sh @@ -121,7 +121,7 @@ # The single quotes are important on the line above, or it will not work. # Handle OPENOCD_RESET_USE_CONNECT_ASSERT_SRST -if [ "${OPENOCD_RESET_USE_CONNECT_ASSERT_SRST}" -eq 1 ]; then +if [ "${OPENOCD_RESET_USE_CONNECT_ASSERT_SRST}" = "1" ]; then OPENOCD_EXTRA_RESET_INIT+="-c 'reset_config connect_assert_srst'" fi