Skip to content

Commit

Permalink
tools/upload.sh: Openocd extension not required in mtb-shell env.
Browse files Browse the repository at this point in the history
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
  • Loading branch information
jaenrig-ifx committed Oct 2, 2024
1 parent ffe443e commit f8e44af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit f8e44af

Please sign in to comment.