Skip to content

Commit

Permalink
Add Arch linux default stm32cubeprog installation path
Browse files Browse the repository at this point in the history
Arch Linux aur/stm32cubeprog , installs by default to /opt/stm32cubeprog/bin
this allows the installation to work without modifying the PATH
  • Loading branch information
He1my authored and fpistm committed Jul 5, 2021
1 parent dcca90a commit 4bfe210
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions linux/stm32CubeProg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ check_tool() {
if ! command -v $STM32CP_CLI > /dev/null 2>&1; then
export PATH="$HOME/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin":$PATH
fi
if ! command -v $STM32CP_CLI > /dev/null 2>&1; then
export PATH="/opt/stm32cubeprog/bin":$PATH
fi
if ! command -v $STM32CP_CLI > /dev/null 2>&1; then
echo "$STM32CP_CLI not found."
echo "Please install it or add '<STM32CubeProgrammer path>/bin' to your PATH environment:"
Expand Down

0 comments on commit 4bfe210

Please sign in to comment.