diff --git a/tools/upload.sh b/tools/upload.sh index 9cb3d36..8d131ff 100644 --- a/tools/upload.sh +++ b/tools/upload.sh @@ -20,13 +20,7 @@ project_name=$8 verbose_flag=$9 function get_openocd_exe { - openocd_exe="${mtb_tools_path}/openocd/bin/openocd" - # Depending on the OS, the openocd executable - # file extension changes. - # Add ".exe" extension if the OS is Windows or cygwin - if [[ "$OSTYPE" == "msys" ]]; then - openocd_exe="${openocd_exe}.exe" - fi + openocd_exe="${mtb_tools_path}/openocd/bin/openocd.exe" echo ${openocd_exe} }