From 2e18e669bde138561b99da077cf19a4b711143c4 Mon Sep 17 00:00:00 2001 From: He1my Date: Sat, 3 Jul 2021 06:38:23 +0200 Subject: [PATCH] Add Arch linux default stm32cubeprog installation path Arch Linux aur/stm32cubeprog , installs by default to /opt/stm32cubeprog/bin this allows the installation to work without modifying the PATH --- linux/stm32CubeProg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux/stm32CubeProg.sh b/linux/stm32CubeProg.sh index 9d131c3a1..98a4cb05e 100755 --- a/linux/stm32CubeProg.sh +++ b/linux/stm32CubeProg.sh @@ -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 '/bin' to your PATH environment:"