We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeaf84a commit c86413dCopy full SHA for c86413d
1 file changed
tools/init-submodules.sh
@@ -3,7 +3,14 @@ set -euo pipefail
3
4
# This script is supposed to be under ${ST-LIB_PATH}/tools/init-submodules.sh
5
6
-cd "${0%/*}/.."
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
7
+STLIB_DIR="$(cd -- "${SCRIPT_DIR}/.." && pwd)"
8
+
9
+cd "$STLIB_DIR"
10
git submodule update --init
-cd STM32CubeH7
-git submodule update --init Drivers/STM32H7xx_HAL_Driver Drivers/CMSIS/Device/ST/STM32H7xx Drivers/BSP/Components/lan8742
11
+cd "$STLIB_DIR/STM32CubeH7"
12
+git submodule update --init \
13
+ Drivers/STM32H7xx_HAL_Driver \
14
+ Drivers/CMSIS/Device/ST/STM32H7xx \
15
+ Drivers/BSP/Components/lan8742
16
0 commit comments