You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "janc.apache.org via commits" <co...@mynewt.apache.org> on 2026/10/31 22:22:08 UTC
(mynewt-core) 04/04: hw/bsp: Quote paths in download and debug scripts
This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit cd9ebae1cadc3b0f60ea7229c76f56a55d98272b
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Sat Oct 31 20:03:30 2026 +0100
hw/bsp: Quote paths in download and debug scripts
BSP download and debug scripts sourced the common helpers through an
unquoted $CORE_PATH and some used image paths unquoted, so they failed
when the project was in a directory with spaces in its name.
Assisted-by: Claude:claude-opus-5-5
---
hw/bsp/ada_feather_nrf52/ada_feather_nrf52_debug.sh | 2 +-
hw/bsp/ada_feather_nrf52/ada_feather_nrf52_download.sh | 2 +-
hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh | 2 +-
hw/bsp/apollo2_evb/apollo2_evb_debug.sh | 2 +-
hw/bsp/apollo2_evb/apollo2_evb_download.sh | 2 +-
hw/bsp/apollo3_evb/apollo3_evb_debug.sh | 2 +-
hw/bsp/apollo3_evb/apollo3_evb_download.sh | 2 +-
hw/bsp/arduino_primo_nrf52/primo_debug.sh | 4 ++--
hw/bsp/arduino_primo_nrf52/primo_download.sh | 4 ++--
hw/bsp/arduino_zero/arduino_zero_debug.sh | 2 +-
hw/bsp/arduino_zero/arduino_zero_download.sh | 2 +-
hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh | 2 +-
hw/bsp/b-l475e-iot01a/b-l475e-iot01a_debug.sh | 2 +-
hw/bsp/bbc_microbit/microbit_debug.sh | 4 ++--
hw/bsp/bbc_microbit/microbit_download.sh | 4 ++--
hw/bsp/black_vet6/stm32f4ve_debug.sh | 2 +-
hw/bsp/blackpill401cc/debug.sh | 2 +-
hw/bsp/blackpill411ce/debug.sh | 2 +-
hw/bsp/ble400/ble400_debug.sh | 2 +-
hw/bsp/ble400/ble400_download.sh | 2 +-
hw/bsp/bluepill/bluepill_debug.sh | 2 +-
hw/bsp/bmd200/nrf51dk_debug.sh | 2 +-
hw/bsp/bmd200/nrf51dk_download.sh | 2 +-
hw/bsp/bmd300eval/bmd300eval_debug.sh | 2 +-
hw/bsp/bmd300eval/bmd300eval_download.sh | 2 +-
hw/bsp/calliope_mini/calliope_mini_debug.sh | 2 +-
hw/bsp/calliope_mini/calliope_mini_download.sh | 2 +-
hw/bsp/dialog_cmac/dialog_cmac_debug.sh | 2 +-
hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh | 2 +-
hw/bsp/dwm1001-dev/dwm1001-dev_download.sh | 2 +-
hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_debug.sh | 2 +-
hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_download.sh | 2 +-
hw/bsp/fanstel_ev_bt40e/debug.sh | 2 +-
hw/bsp/fanstel_ev_bt40e/net/debug.sh | 2 +-
hw/bsp/frdm-k64f/frdm-k64_debug.sh | 2 +-
hw/bsp/frdm-k64f/frdm-k64_download.sh | 2 +-
hw/bsp/frdm-k82f/frdm-k82_debug.sh | 2 +-
hw/bsp/frdm-k82f/frdm-k82_download.sh | 2 +-
hw/bsp/hifive1/hifive1_debug.sh | 2 +-
hw/bsp/hifive1/hifive1_download.sh | 2 +-
hw/bsp/lpcxpresso55s28/debug.sh | 2 +-
hw/bsp/native-armv7/native_debug.sh | 4 ++--
hw/bsp/native/native_debug.sh | 4 ++--
hw/bsp/nina-b1/nrf52dk_debug.sh | 2 +-
hw/bsp/nina-b1/nrf52dk_download.sh | 2 +-
hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh | 2 +-
hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh | 2 +-
hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh | 2 +-
hw/bsp/nordic_pca10056/nordic_pca10056_debug.sh | 2 +-
hw/bsp/nordic_pca10059/nordic_pca10059_debug.sh | 2 +-
hw/bsp/nordic_pca10090/nordic_pca10090_debug.sh | 2 +-
hw/bsp/nordic_pca10090/nrf9160dk_common.sh | 6 +++---
hw/bsp/nordic_pca10095/nordic_pca10095_debug.sh | 2 +-
hw/bsp/nordic_pca10095_net/nordic_pca10095_net_debug.sh | 2 +-
hw/bsp/nordic_pca10095_net/nordic_pca10095_net_download.sh | 2 +-
hw/bsp/nordic_pca10121/debug.sh | 2 +-
hw/bsp/nordic_pca10121/net/debug.sh | 2 +-
hw/bsp/nordic_pca10156/nordic_pca10156_debug.sh | 2 +-
hw/bsp/nordic_pca20020/nordic_pca20020_debug.sh | 2 +-
hw/bsp/nordic_pca20020/nordic_pca20020_download.sh | 2 +-
hw/bsp/nordic_thingy53/debug.sh | 2 +-
hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh | 2 +-
hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh | 2 +-
hw/bsp/nrf51-blenano/nrf51dk_debug.sh | 2 +-
hw/bsp/nrf51-blenano/nrf51dk_download.sh | 2 +-
hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh | 2 +-
hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh | 2 +-
hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh | 2 +-
hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh | 2 +-
hw/bsp/nucleo-f303re/nucleo-f303re_debug.sh | 2 +-
hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh | 2 +-
hw/bsp/nucleo-f411re/nucleo-f411re_debug.sh | 2 +-
hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh | 2 +-
hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh | 2 +-
hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh | 2 +-
hw/bsp/nucleo-f767zi/nucleo-f767zi_debug.sh | 2 +-
hw/bsp/nucleo-g0b1re/debug.sh | 2 +-
hw/bsp/nucleo-g491re/debug.sh | 2 +-
hw/bsp/nucleo-h563zi/debug.sh | 2 +-
hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh | 2 +-
hw/bsp/nucleo-h753zi/nucleo-h753zi_debug.sh | 2 +-
hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh | 2 +-
hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh | 2 +-
hw/bsp/nucleo-u575zi-q/debug.sh | 2 +-
hw/bsp/olimex-p103/olimex_p103_debug.sh | 2 +-
.../olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh | 2 +-
hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh | 2 +-
hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh | 2 +-
hw/bsp/pinetime/pinetime_debug.sh | 2 +-
hw/bsp/pinetime/pinetime_download.sh | 2 +-
hw/bsp/puckjs/puckjs_debug.sh | 2 +-
hw/bsp/puckjs/puckjs_download.sh | 2 +-
hw/bsp/rb-blend2/rb-blend2_debug.sh | 2 +-
hw/bsp/rb-blend2/rb-blend2_download.sh | 2 +-
hw/bsp/rb-nano2/rb-nano2_debug.sh | 2 +-
hw/bsp/rb-nano2/rb-nano2_download.sh | 2 +-
hw/bsp/reel_board/reel_board_debug.sh | 2 +-
hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_debug.sh | 2 +-
hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_download.sh | 2 +-
hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh | 2 +-
hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh | 2 +-
hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh | 2 +-
hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh | 2 +-
hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh | 2 +-
hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh | 2 +-
hw/bsp/telee02/telee02_debug.sh | 2 +-
hw/bsp/telee02/telee02_download.sh | 2 +-
hw/bsp/ublox_bmd_345/debug.sh | 2 +-
hw/bsp/ublox_bmd_345/download.sh | 2 +-
hw/bsp/ublox_mini_nora_b1/debug.sh | 2 +-
hw/bsp/ublox_mini_nora_b1/net/debug.sh | 2 +-
hw/bsp/usbmkw41z/usbkw41z_debug.sh | 2 +-
hw/bsp/usbmkw41z/usbkw41z_download.sh | 2 +-
hw/bsp/vbluno51/vbluno51_debug.sh | 2 +-
hw/bsp/vbluno51/vbluno51_download.sh | 2 +-
hw/bsp/vbluno52/vbluno52_debug.sh | 2 +-
hw/bsp/vbluno52/vbluno52_download.sh | 2 +-
hw/bsp/weact_g431cb/debug.sh | 2 +-
hw/bsp/weact_h503cb/debug.sh | 2 +-
hw/bsp/weact_h743vi/debug.sh | 2 +-
120 files changed, 128 insertions(+), 128 deletions(-)
diff --git a/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_debug.sh b/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_debug.sh
+++ b/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_download.sh b/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_download.sh
+++ b/hw/bsp/ada_feather_nrf52/ada_feather_nrf52_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh b/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh
index 7e28b8589..002d9c09d 100755
--- a/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh
+++ b/hw/bsp/ada_feather_stm32f405/ada_feather_stm32f405_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/apollo2_evb/apollo2_evb_debug.sh b/hw/bsp/apollo2_evb/apollo2_evb_debug.sh
index 7d99ddecf..4439cdae6 100755
--- a/hw/bsp/apollo2_evb/apollo2_evb_debug.sh
+++ b/hw/bsp/apollo2_evb/apollo2_evb_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/apollo2_evb/apollo2_evb_download.sh b/hw/bsp/apollo2_evb/apollo2_evb_download.sh
index 48f0bf990..1e9e46c29 100755
--- a/hw/bsp/apollo2_evb/apollo2_evb_download.sh
+++ b/hw/bsp/apollo2_evb/apollo2_evb_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/apollo3_evb/apollo3_evb_debug.sh b/hw/bsp/apollo3_evb/apollo3_evb_debug.sh
index 1a22b8f95..ccd43c536 100755
--- a/hw/bsp/apollo3_evb/apollo3_evb_debug.sh
+++ b/hw/bsp/apollo3_evb/apollo3_evb_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/apollo3_evb/apollo3_evb_download.sh b/hw/bsp/apollo3_evb/apollo3_evb_download.sh
index 5fb863a38..59c9773b8 100755
--- a/hw/bsp/apollo3_evb/apollo3_evb_download.sh
+++ b/hw/bsp/apollo3_evb/apollo3_evb_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/arduino_primo_nrf52/primo_debug.sh b/hw/bsp/arduino_primo_nrf52/primo_debug.sh
index 9aa7f4518..ce84ea1a0 100755
--- a/hw/bsp/arduino_primo_nrf52/primo_debug.sh
+++ b/hw/bsp/arduino_primo_nrf52/primo_debug.sh
@@ -39,7 +39,7 @@ for feature in $FEATURES; do
done
if [ $USE_OPENOCD -eq 1 ]; then
- . $CORE_PATH/hw/scripts/openocd.sh
+ . "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-s $BSP_PATH -f arduino_primo.cfg"
# Exit openocd when gdb detaches.
@@ -47,7 +47,7 @@ if [ $USE_OPENOCD -eq 1 ]; then
openocd_debug
else
- . $CORE_PATH/hw/scripts/jlink.sh
+ . "$CORE_PATH"/hw/scripts/jlink.sh
JLINK_DEV="nRF52"
diff --git a/hw/bsp/arduino_primo_nrf52/primo_download.sh b/hw/bsp/arduino_primo_nrf52/primo_download.sh
index 0d416fac5..16a0b67bc 100755
--- a/hw/bsp/arduino_primo_nrf52/primo_download.sh
+++ b/hw/bsp/arduino_primo_nrf52/primo_download.sh
@@ -42,7 +42,7 @@ if [ "$MFG_IMAGE" ]; then
fi
if [ $USE_OPENOCD -eq 1 ]; then
- . $CORE_PATH/hw/scripts/openocd.sh
+ . "$CORE_PATH"/hw/scripts/openocd.sh
#
# XXXX note that this is using openocd through STM32, with openocd
@@ -54,7 +54,7 @@ if [ $USE_OPENOCD -eq 1 ]; then
openocd_load
openocd_reset_run
else
- . $CORE_PATH/hw/scripts/jlink.sh
+ . "$CORE_PATH"/hw/scripts/jlink.sh
JLINK_DEV="nRF52"
diff --git a/hw/bsp/arduino_zero/arduino_zero_debug.sh b/hw/bsp/arduino_zero/arduino_zero_debug.sh
index bdda39e1c..a6fef8884 100755
--- a/hw/bsp/arduino_zero/arduino_zero_debug.sh
+++ b/hw/bsp/arduino_zero/arduino_zero_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f $BSP_PATH/arduino_zero.cfg"
diff --git a/hw/bsp/arduino_zero/arduino_zero_download.sh b/hw/bsp/arduino_zero/arduino_zero_download.sh
index 91f2ebaf3..a7413770a 100755
--- a/hw/bsp/arduino_zero/arduino_zero_download.sh
+++ b/hw/bsp/arduino_zero/arduino_zero_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f $BSP_PATH/arduino_zero.cfg"
diff --git a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh b/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh
+++ b/hw/bsp/b-l072z-lrwan1/b-l072z-lrwan1_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/b-l475e-iot01a/b-l475e-iot01a_debug.sh b/hw/bsp/b-l475e-iot01a/b-l475e-iot01a_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/b-l475e-iot01a/b-l475e-iot01a_debug.sh
+++ b/hw/bsp/b-l475e-iot01a/b-l475e-iot01a_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/bbc_microbit/microbit_debug.sh b/hw/bsp/bbc_microbit/microbit_debug.sh
index 03551d660..7c7c38d0d 100755
--- a/hw/bsp/bbc_microbit/microbit_debug.sh
+++ b/hw/bsp/bbc_microbit/microbit_debug.sh
@@ -39,7 +39,7 @@ for feature in $FEATURES; do
done
if [ $USE_OPENOCD -eq 1 ]; then
- . $CORE_PATH/hw/scripts/openocd.sh
+ . "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
# Exit openocd when gdb detaches.
@@ -47,7 +47,7 @@ if [ $USE_OPENOCD -eq 1 ]; then
openocd_debug
else
- . $CORE_PATH/hw/scripts/jlink.sh
+ . "$CORE_PATH"/hw/scripts/jlink.sh
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/bbc_microbit/microbit_download.sh b/hw/bsp/bbc_microbit/microbit_download.sh
index 1615745fc..a63284631 100755
--- a/hw/bsp/bbc_microbit/microbit_download.sh
+++ b/hw/bsp/bbc_microbit/microbit_download.sh
@@ -43,7 +43,7 @@ if [ "$MFG_IMAGE" ]; then
fi
if [ $USE_OPENOCD -eq 1 ]; then
- . $CORE_PATH/hw/scripts/openocd.sh
+ . "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
@@ -51,7 +51,7 @@ if [ $USE_OPENOCD -eq 1 ]; then
openocd_load
openocd_reset_run
else
- . $CORE_PATH/hw/scripts/jlink.sh
+ . "$CORE_PATH"/hw/scripts/jlink.sh
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/black_vet6/stm32f4ve_debug.sh b/hw/bsp/black_vet6/stm32f4ve_debug.sh
index 0649308ee..90ab6c4cf 100755
--- a/hw/bsp/black_vet6/stm32f4ve_debug.sh
+++ b/hw/bsp/black_vet6/stm32f4ve_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/blackpill401cc/debug.sh b/hw/bsp/blackpill401cc/debug.sh
index d1e28d76a..2af7fa8da 100755
--- a/hw/bsp/blackpill401cc/debug.sh
+++ b/hw/bsp/blackpill401cc/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/blackpill411ce/debug.sh b/hw/bsp/blackpill411ce/debug.sh
index d1e28d76a..2af7fa8da 100755
--- a/hw/bsp/blackpill411ce/debug.sh
+++ b/hw/bsp/blackpill411ce/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/ble400/ble400_debug.sh b/hw/bsp/ble400/ble400_debug.sh
index 27f7ecb42..f29cb6911 100755
--- a/hw/bsp/ble400/ble400_debug.sh
+++ b/hw/bsp/ble400/ble400_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-s $BSP_PATH -f ble400.cfg"
diff --git a/hw/bsp/ble400/ble400_download.sh b/hw/bsp/ble400/ble400_download.sh
index 3fc610bfd..5a6e4545f 100755
--- a/hw/bsp/ble400/ble400_download.sh
+++ b/hw/bsp/ble400/ble400_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-s $BSP_PATH -f ble400.cfg"
diff --git a/hw/bsp/bluepill/bluepill_debug.sh b/hw/bsp/bluepill/bluepill_debug.sh
index 298f897b3..e71cec14a 100755
--- a/hw/bsp/bluepill/bluepill_debug.sh
+++ b/hw/bsp/bluepill/bluepill_debug.sh
@@ -8,7 +8,7 @@
# If your BSP uses OpenOCD, a good example script to copy is:
# repos/apache-mynewt-core/hw/bsp/rb-nano2/rb-nano2_debug.sh
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/bluepill.cfg"
diff --git a/hw/bsp/bmd200/nrf51dk_debug.sh b/hw/bsp/bmd200/nrf51dk_debug.sh
index 7b919c786..b27f573f4 100755
--- a/hw/bsp/bmd200/nrf51dk_debug.sh
+++ b/hw/bsp/bmd200/nrf51dk_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/bmd200/nrf51dk_download.sh b/hw/bsp/bmd200/nrf51dk_download.sh
index cb4c9d804..139c3356e 100755
--- a/hw/bsp/bmd200/nrf51dk_download.sh
+++ b/hw/bsp/bmd200/nrf51dk_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/bmd300eval/bmd300eval_debug.sh b/hw/bsp/bmd300eval/bmd300eval_debug.sh
index dbb3918c0..97b2f4b15 100755
--- a/hw/bsp/bmd300eval/bmd300eval_debug.sh
+++ b/hw/bsp/bmd300eval/bmd300eval_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/bmd300eval/bmd300eval_download.sh b/hw/bsp/bmd300eval/bmd300eval_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/bmd300eval/bmd300eval_download.sh
+++ b/hw/bsp/bmd300eval/bmd300eval_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/calliope_mini/calliope_mini_debug.sh b/hw/bsp/calliope_mini/calliope_mini_debug.sh
index 7f4d2d564..7bd2892c0 100755
--- a/hw/bsp/calliope_mini/calliope_mini_debug.sh
+++ b/hw/bsp/calliope_mini/calliope_mini_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/calliope_mini/calliope_mini_download.sh b/hw/bsp/calliope_mini/calliope_mini_download.sh
index 1f1d5de3e..b2f9dba6f 100755
--- a/hw/bsp/calliope_mini/calliope_mini_download.sh
+++ b/hw/bsp/calliope_mini/calliope_mini_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/dialog_cmac/dialog_cmac_debug.sh b/hw/bsp/dialog_cmac/dialog_cmac_debug.sh
index 518ec6dcd..a202ae180 100755
--- a/hw/bsp/dialog_cmac/dialog_cmac_debug.sh
+++ b/hw/bsp/dialog_cmac/dialog_cmac_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="Cortex-M0+"
diff --git a/hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh b/hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh
+++ b/hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/dwm1001-dev/dwm1001-dev_download.sh b/hw/bsp/dwm1001-dev/dwm1001-dev_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/dwm1001-dev/dwm1001-dev_download.sh
+++ b/hw/bsp/dwm1001-dev/dwm1001-dev_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_debug.sh b/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_debug.sh
index 5e363033b..ae4e6bf5f 100755
--- a/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_debug.sh
+++ b/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_download.sh b/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_download.sh
index 9f4fade92..445673d73 100755
--- a/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_download.sh
+++ b/hw/bsp/fanstel-ev-bt840/fanstel-ev-bt840_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/fanstel_ev_bt40e/debug.sh b/hw/bsp/fanstel_ev_bt40e/debug.sh
index f1ec3616c..6c86d934c 100755
--- a/hw/bsp/fanstel_ev_bt40e/debug.sh
+++ b/hw/bsp/fanstel_ev_bt40e/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_app"
diff --git a/hw/bsp/fanstel_ev_bt40e/net/debug.sh b/hw/bsp/fanstel_ev_bt40e/net/debug.sh
index beb47e058..23fe145ea 100755
--- a/hw/bsp/fanstel_ev_bt40e/net/debug.sh
+++ b/hw/bsp/fanstel_ev_bt40e/net/debug.sh
@@ -31,7 +31,7 @@
#Use custom ports for debuging so that newt debug works on both cores
EXTRA_JTAG_CMD="-port 3334"
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_net"
diff --git a/hw/bsp/frdm-k64f/frdm-k64_debug.sh b/hw/bsp/frdm-k64f/frdm-k64_debug.sh
index 9479b3890..c6e4c9789 100755
--- a/hw/bsp/frdm-k64f/frdm-k64_debug.sh
+++ b/hw/bsp/frdm-k64f/frdm-k64_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/pyocd.sh
+. "$CORE_PATH"/hw/scripts/pyocd.sh
FILE_NAME=$BIN_BASENAME.elf
TARGET=k64f
diff --git a/hw/bsp/frdm-k64f/frdm-k64_download.sh b/hw/bsp/frdm-k64f/frdm-k64_download.sh
index d30ec99a2..82deb24f8 100755
--- a/hw/bsp/frdm-k64f/frdm-k64_download.sh
+++ b/hw/bsp/frdm-k64f/frdm-k64_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/pyocd.sh
+. "$CORE_PATH"/hw/scripts/pyocd.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0
diff --git a/hw/bsp/frdm-k82f/frdm-k82_debug.sh b/hw/bsp/frdm-k82f/frdm-k82_debug.sh
index 122c18b1f..7f8aba213 100755
--- a/hw/bsp/frdm-k82f/frdm-k82_debug.sh
+++ b/hw/bsp/frdm-k82f/frdm-k82_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/pyocd.sh
+. "$CORE_PATH"/hw/scripts/pyocd.sh
FILE_NAME=$BIN_BASENAME.elf
TARGET=K82F25615
diff --git a/hw/bsp/frdm-k82f/frdm-k82_download.sh b/hw/bsp/frdm-k82f/frdm-k82_download.sh
index f50b07706..d91ae81a0 100755
--- a/hw/bsp/frdm-k82f/frdm-k82_download.sh
+++ b/hw/bsp/frdm-k82f/frdm-k82_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/pyocd.sh
+. "$CORE_PATH"/hw/scripts/pyocd.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0
diff --git a/hw/bsp/hifive1/hifive1_debug.sh b/hw/bsp/hifive1/hifive1_debug.sh
index 3660c1e5c..879a2fa01 100755
--- a/hw/bsp/hifive1/hifive1_debug.sh
+++ b/hw/bsp/hifive1/hifive1_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f $CORE_PATH/hw/bsp/hifive1/riscv_openocd.cfg"
diff --git a/hw/bsp/hifive1/hifive1_download.sh b/hw/bsp/hifive1/hifive1_download.sh
index db30b2246..894c163aa 100755
--- a/hw/bsp/hifive1/hifive1_download.sh
+++ b/hw/bsp/hifive1/hifive1_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f $CORE_PATH/hw/bsp/hifive1/riscv_openocd.cfg"
diff --git a/hw/bsp/lpcxpresso55s28/debug.sh b/hw/bsp/lpcxpresso55s28/debug.sh
index fa069cecb..6c767e1a3 100755
--- a/hw/bsp/lpcxpresso55s28/debug.sh
+++ b/hw/bsp/lpcxpresso55s28/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/pyocd.sh
+. "$CORE_PATH"/hw/scripts/pyocd.sh
FILE_NAME=$BIN_BASENAME.elf
TARGET=lpc55s28
diff --git a/hw/bsp/native-armv7/native_debug.sh b/hw/bsp/native-armv7/native_debug.sh
index f412408ba..6850e78f3 100755
--- a/hw/bsp/native-armv7/native_debug.sh
+++ b/hw/bsp/native-armv7/native_debug.sh
@@ -38,6 +38,6 @@ fi
GDB_SCRIPT_PATH=$BSP_PATH/sim.gdb
FILE_NAME=$BIN_BASENAME.elf
-echo "Debugging" $FILE_NAME
+echo "Debugging" "$FILE_NAME"
-gdb -x $GDB_SCRIPT_PATH $FILE_NAME
+gdb -x "$GDB_SCRIPT_PATH" "$FILE_NAME"
diff --git a/hw/bsp/native/native_debug.sh b/hw/bsp/native/native_debug.sh
index f412408ba..6850e78f3 100755
--- a/hw/bsp/native/native_debug.sh
+++ b/hw/bsp/native/native_debug.sh
@@ -38,6 +38,6 @@ fi
GDB_SCRIPT_PATH=$BSP_PATH/sim.gdb
FILE_NAME=$BIN_BASENAME.elf
-echo "Debugging" $FILE_NAME
+echo "Debugging" "$FILE_NAME"
-gdb -x $GDB_SCRIPT_PATH $FILE_NAME
+gdb -x "$GDB_SCRIPT_PATH" "$FILE_NAME"
diff --git a/hw/bsp/nina-b1/nrf52dk_debug.sh b/hw/bsp/nina-b1/nrf52dk_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/nina-b1/nrf52dk_debug.sh
+++ b/hw/bsp/nina-b1/nrf52dk_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nina-b1/nrf52dk_download.sh b/hw/bsp/nina-b1/nrf52dk_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/nina-b1/nrf52dk_download.sh
+++ b/hw/bsp/nina-b1/nrf52dk_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh b/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh
index 9830fed16..219a8baba 100755
--- a/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh
+++ b/hw/bsp/nordic_pca10028-16k/nordic_pca10028-16k_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh b/hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh
index 7b919c786..b27f573f4 100755
--- a/hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh
+++ b/hw/bsp/nordic_pca10028/nordic_pca10028_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh b/hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh
+++ b/hw/bsp/nordic_pca10040/nordic_pca10040_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nordic_pca10056/nordic_pca10056_debug.sh b/hw/bsp/nordic_pca10056/nordic_pca10056_debug.sh
index 5e363033b..ae4e6bf5f 100755
--- a/hw/bsp/nordic_pca10056/nordic_pca10056_debug.sh
+++ b/hw/bsp/nordic_pca10056/nordic_pca10056_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nordic_pca10059/nordic_pca10059_debug.sh b/hw/bsp/nordic_pca10059/nordic_pca10059_debug.sh
index 5e363033b..ae4e6bf5f 100755
--- a/hw/bsp/nordic_pca10059/nordic_pca10059_debug.sh
+++ b/hw/bsp/nordic_pca10059/nordic_pca10059_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nordic_pca10090/nordic_pca10090_debug.sh b/hw/bsp/nordic_pca10090/nordic_pca10090_debug.sh
index 1f6836f7d..c55c16a48 100755
--- a/hw/bsp/nordic_pca10090/nordic_pca10090_debug.sh
+++ b/hw/bsp/nordic_pca10090/nordic_pca10090_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nordic_pca10090/nrf9160dk_common.sh b/hw/bsp/nordic_pca10090/nrf9160dk_common.sh
index 422c34c49..f2ec9d5e4 100755
--- a/hw/bsp/nordic_pca10090/nrf9160dk_common.sh
+++ b/hw/bsp/nordic_pca10090/nrf9160dk_common.sh
@@ -30,7 +30,7 @@ cleanup()
approtect_script=$MYNEWT_PROJECT_ROOT/hw/bsp/nordic_pca10090/approtect_detect
targetpoweron_script=$MYNEWT_PROJECT_ROOT/hw/bsp/nordic_pca10090/targetpoweron
-if [ ! -f $approtect_script ]; then
+if [ ! -f "$approtect_script" ]; then
echo "$approtect_script not found"
exit 0
fi
@@ -38,7 +38,7 @@ fi
check_approtect_status() {
echo "check_approtect_status..."
status=$(JLinkExe -device "CORTEX-M33" -speed 4000 -if SWD \
- -CommandFile $approtect_script | grep 'register 3' \
+ -CommandFile "$approtect_script" | grep 'register 3' \
| awk -F " " 'END{print $NF}')
if [ -z $status ] ; then
@@ -54,7 +54,7 @@ check_approtect_status() {
# Turn the power on via the CommandFile and get target voltage
get_target_voltage() {
voltage=$(JLinkExe -device "CORTEX-M33" -speed 1000 -if SWD \
- -CommandFile $targetpoweron_script | \
+ -CommandFile "$targetpoweron_script" | \
sed -n 's/VTref\s*=\s*\(.*\)\.\(.*\)V/\1\2/p')
echo $voltage
}
diff --git a/hw/bsp/nordic_pca10095/nordic_pca10095_debug.sh b/hw/bsp/nordic_pca10095/nordic_pca10095_debug.sh
index f1ec3616c..6c86d934c 100755
--- a/hw/bsp/nordic_pca10095/nordic_pca10095_debug.sh
+++ b/hw/bsp/nordic_pca10095/nordic_pca10095_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_app"
diff --git a/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_debug.sh b/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_debug.sh
index beb47e058..23fe145ea 100755
--- a/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_debug.sh
+++ b/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_debug.sh
@@ -31,7 +31,7 @@
#Use custom ports for debuging so that newt debug works on both cores
EXTRA_JTAG_CMD="-port 3334"
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_net"
diff --git a/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_download.sh b/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_download.sh
index c311284a2..4910db6a1 100755
--- a/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_download.sh
+++ b/hw/bsp/nordic_pca10095_net/nordic_pca10095_net_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x01000000
diff --git a/hw/bsp/nordic_pca10121/debug.sh b/hw/bsp/nordic_pca10121/debug.sh
index f1ec3616c..6c86d934c 100755
--- a/hw/bsp/nordic_pca10121/debug.sh
+++ b/hw/bsp/nordic_pca10121/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_app"
diff --git a/hw/bsp/nordic_pca10121/net/debug.sh b/hw/bsp/nordic_pca10121/net/debug.sh
index beb47e058..23fe145ea 100755
--- a/hw/bsp/nordic_pca10121/net/debug.sh
+++ b/hw/bsp/nordic_pca10121/net/debug.sh
@@ -31,7 +31,7 @@
#Use custom ports for debuging so that newt debug works on both cores
EXTRA_JTAG_CMD="-port 3334"
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_net"
diff --git a/hw/bsp/nordic_pca10156/nordic_pca10156_debug.sh b/hw/bsp/nordic_pca10156/nordic_pca10156_debug.sh
index a521c897b..d58e0f02b 100755
--- a/hw/bsp/nordic_pca10156/nordic_pca10156_debug.sh
+++ b/hw/bsp/nordic_pca10156/nordic_pca10156_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="Cortex-M33"
diff --git a/hw/bsp/nordic_pca20020/nordic_pca20020_debug.sh b/hw/bsp/nordic_pca20020/nordic_pca20020_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/nordic_pca20020/nordic_pca20020_debug.sh
+++ b/hw/bsp/nordic_pca20020/nordic_pca20020_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nordic_pca20020/nordic_pca20020_download.sh b/hw/bsp/nordic_pca20020/nordic_pca20020_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/nordic_pca20020/nordic_pca20020_download.sh
+++ b/hw/bsp/nordic_pca20020/nordic_pca20020_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/nordic_thingy53/debug.sh b/hw/bsp/nordic_thingy53/debug.sh
index f1ec3616c..6c86d934c 100755
--- a/hw/bsp/nordic_thingy53/debug.sh
+++ b/hw/bsp/nordic_thingy53/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_app"
diff --git a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh
index 7b919c786..b27f573f4 100755
--- a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh
+++ b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nRF51422_xxAC"
diff --git a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh
index 3e552e225..1062d2189 100755
--- a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh
+++ b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/nrf51-blenano/nrf51dk_debug.sh b/hw/bsp/nrf51-blenano/nrf51dk_debug.sh
index 7f4d2d564..7bd2892c0 100755
--- a/hw/bsp/nrf51-blenano/nrf51dk_debug.sh
+++ b/hw/bsp/nrf51-blenano/nrf51dk_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/nrf51-blenano/nrf51dk_download.sh b/hw/bsp/nrf51-blenano/nrf51dk_download.sh
index 1f1d5de3e..b2f9dba6f 100755
--- a/hw/bsp/nrf51-blenano/nrf51dk_download.sh
+++ b/hw/bsp/nrf51-blenano/nrf51dk_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh b/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
+++ b/hw/bsp/nucleo-f030r8/nucleo-f030r8_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh b/hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh
index 50aa32b08..ffd846426 100755
--- a/hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh
+++ b/hw/bsp/nucleo-f072rb/nucleo-f072rb_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh b/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh
+++ b/hw/bsp/nucleo-f103rb/nucleo_f103rb_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh b/hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh
index 6ca020afd..566986058 100755
--- a/hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh
+++ b/hw/bsp/nucleo-f303k8/nucleo-f303k8_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f board/st_nucleo_f3.cfg"
diff --git a/hw/bsp/nucleo-f303re/nucleo-f303re_debug.sh b/hw/bsp/nucleo-f303re/nucleo-f303re_debug.sh
index 6ca020afd..566986058 100755
--- a/hw/bsp/nucleo-f303re/nucleo-f303re_debug.sh
+++ b/hw/bsp/nucleo-f303re/nucleo-f303re_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f board/st_nucleo_f3.cfg"
diff --git a/hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh b/hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh
index 11d2fe570..961584351 100755
--- a/hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh
+++ b/hw/bsp/nucleo-f401re/nucleo-f401re_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f board/st_nucleo_f4.cfg"
diff --git a/hw/bsp/nucleo-f411re/nucleo-f411re_debug.sh b/hw/bsp/nucleo-f411re/nucleo-f411re_debug.sh
index 791b7959b..53516d080 100755
--- a/hw/bsp/nucleo-f411re/nucleo-f411re_debug.sh
+++ b/hw/bsp/nucleo-f411re/nucleo-f411re_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh b/hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh
index 395efc743..fe0d9c258 100755
--- a/hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh
+++ b/hw/bsp/nucleo-f413zh/nucleo-f413zh_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
# Exit openocd when gdb detaches.
diff --git a/hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh b/hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh
index 93f952637..bce95420d 100755
--- a/hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh
+++ b/hw/bsp/nucleo-f439zi/nucleo-f439zi_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
# Exit openocd when gdb detaches.
diff --git a/hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh b/hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh
index 625656a4f..0b88cdbd0 100755
--- a/hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh
+++ b/hw/bsp/nucleo-f746zg/nucleo-f746zg_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/nucleo-f746zg.cfg"
diff --git a/hw/bsp/nucleo-f767zi/nucleo-f767zi_debug.sh b/hw/bsp/nucleo-f767zi/nucleo-f767zi_debug.sh
index 3ee5cb494..7a60b4823 100755
--- a/hw/bsp/nucleo-f767zi/nucleo-f767zi_debug.sh
+++ b/hw/bsp/nucleo-f767zi/nucleo-f767zi_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/nucleo-f767zi.cfg"
diff --git a/hw/bsp/nucleo-g0b1re/debug.sh b/hw/bsp/nucleo-g0b1re/debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-g0b1re/debug.sh
+++ b/hw/bsp/nucleo-g0b1re/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-g491re/debug.sh b/hw/bsp/nucleo-g491re/debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-g491re/debug.sh
+++ b/hw/bsp/nucleo-g491re/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-h563zi/debug.sh b/hw/bsp/nucleo-h563zi/debug.sh
index 28886adf6..98c4601c0 100644
--- a/hw/bsp/nucleo-h563zi/debug.sh
+++ b/hw/bsp/nucleo-h563zi/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stm32_programmer.sh
+. "$CORE_PATH"/hw/scripts/stm32_programmer.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh b/hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh
+++ b/hw/bsp/nucleo-h723zg/nucleo-h723zg_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-h753zi/nucleo-h753zi_debug.sh b/hw/bsp/nucleo-h753zi/nucleo-h753zi_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-h753zi/nucleo-h753zi_debug.sh
+++ b/hw/bsp/nucleo-h753zi/nucleo-h753zi_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh b/hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh
+++ b/hw/bsp/nucleo-l073rz/nucleo-l073rz_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh b/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh
+++ b/hw/bsp/nucleo-l476rg/nucleo-l476rg_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/nucleo-u575zi-q/debug.sh b/hw/bsp/nucleo-u575zi-q/debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/nucleo-u575zi-q/debug.sh
+++ b/hw/bsp/nucleo-u575zi-q/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/olimex-p103/olimex_p103_debug.sh b/hw/bsp/olimex-p103/olimex_p103_debug.sh
index 528d94805..588d33650 100755
--- a/hw/bsp/olimex-p103/olimex_p103_debug.sh
+++ b/hw/bsp/olimex-p103/olimex_p103_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/olimex_p103.cfg"
diff --git a/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh b/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh
index 229b8e7fc..bee2a9ca0 100755
--- a/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh
+++ b/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/ftdi/olimex-arm-usb-tiny-h.cfg -s $BSP_PATH -f target/stm32f4x.cfg"
diff --git a/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh b/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh
+++ b/hw/bsp/p-nucleo-wb55-usbdongle/p-nucleo-wb55_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh b/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh
+++ b/hw/bsp/p-nucleo-wb55/p-nucleo-wb55_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/pinetime/pinetime_debug.sh b/hw/bsp/pinetime/pinetime_debug.sh
index ecc730a8b..f5a2c9522 100755
--- a/hw/bsp/pinetime/pinetime_debug.sh
+++ b/hw/bsp/pinetime/pinetime_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/pinetime/pinetime_download.sh b/hw/bsp/pinetime/pinetime_download.sh
index ee57c597b..6fabb4bc6 100755
--- a/hw/bsp/pinetime/pinetime_download.sh
+++ b/hw/bsp/pinetime/pinetime_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
# autodetect or default stlink
openocd_detect_interface stlink
diff --git a/hw/bsp/puckjs/puckjs_debug.sh b/hw/bsp/puckjs/puckjs_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/puckjs/puckjs_debug.sh
+++ b/hw/bsp/puckjs/puckjs_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/puckjs/puckjs_download.sh b/hw/bsp/puckjs/puckjs_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/puckjs/puckjs_download.sh
+++ b/hw/bsp/puckjs/puckjs_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/rb-blend2/rb-blend2_debug.sh b/hw/bsp/rb-blend2/rb-blend2_debug.sh
index 2f760cb6b..9b383da55 100755
--- a/hw/bsp/rb-blend2/rb-blend2_debug.sh
+++ b/hw/bsp/rb-blend2/rb-blend2_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/rb-blend2/rb-blend2_download.sh b/hw/bsp/rb-blend2/rb-blend2_download.sh
index d7728624b..00edeeced 100755
--- a/hw/bsp/rb-blend2/rb-blend2_download.sh
+++ b/hw/bsp/rb-blend2/rb-blend2_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/rb-nano2/rb-nano2_debug.sh b/hw/bsp/rb-nano2/rb-nano2_debug.sh
index 2f760cb6b..9b383da55 100755
--- a/hw/bsp/rb-nano2/rb-nano2_debug.sh
+++ b/hw/bsp/rb-nano2/rb-nano2_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/rb-nano2/rb-nano2_download.sh b/hw/bsp/rb-nano2/rb-nano2_download.sh
index d54d81280..3c28ff826 100755
--- a/hw/bsp/rb-nano2/rb-nano2_download.sh
+++ b/hw/bsp/rb-nano2/rb-nano2_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/reel_board/reel_board_debug.sh b/hw/bsp/reel_board/reel_board_debug.sh
index 5e363033b..ae4e6bf5f 100755
--- a/hw/bsp/reel_board/reel_board_debug.sh
+++ b/hw/bsp/reel_board/reel_board_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_debug.sh b/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_debug.sh
+++ b/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_download.sh b/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_download.sh
+++ b/hw/bsp/ruuvitag_rev_b/ruuvitag_rev_b_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh b/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
index 314ee3e5c..d31cad44a 100755
--- a/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
+++ b/hw/bsp/stm32f3discovery/stm32f3discovery_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f board/stm32f3discovery.cfg"
diff --git a/hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh b/hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh
+++ b/hw/bsp/stm32f411discovery/stm32f411discovery_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh b/hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh
index f8e038734..4d1bad8bb 100755
--- a/hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh
+++ b/hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f board/stm32f429discovery.cfg"
diff --git a/hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh b/hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh
index c78aad8b9..07500ea9d 100755
--- a/hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh
+++ b/hw/bsp/stm32f4discovery/stm32f4discovery_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/f4discovery.cfg"
diff --git a/hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh b/hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh
index dfa675683..4d6a5b06e 100755
--- a/hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh
+++ b/hw/bsp/stm32f7discovery/stm32f7discovery_debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-s $BSP_PATH -f $BSP_PATH/stm32f7discovery.cfg"
diff --git a/hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh b/hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh
index 7e28b8589..002d9c09d 100755
--- a/hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh
+++ b/hw/bsp/stm32l152discovery/stm32l152discovery_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/telee02/telee02_debug.sh b/hw/bsp/telee02/telee02_debug.sh
index 17b980d1a..595e83ffb 100755
--- a/hw/bsp/telee02/telee02_debug.sh
+++ b/hw/bsp/telee02/telee02_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/telee02/telee02_download.sh b/hw/bsp/telee02/telee02_download.sh
index 08d45b464..a8a3ba516 100755
--- a/hw/bsp/telee02/telee02_download.sh
+++ b/hw/bsp/telee02/telee02_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/ublox_bmd_345/debug.sh b/hw/bsp/ublox_bmd_345/debug.sh
index 5e363033b..ae4e6bf5f 100755
--- a/hw/bsp/ublox_bmd_345/debug.sh
+++ b/hw/bsp/ublox_bmd_345/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/ublox_bmd_345/download.sh b/hw/bsp/ublox_bmd_345/download.sh
index 9f4fade92..445673d73 100755
--- a/hw/bsp/ublox_bmd_345/download.sh
+++ b/hw/bsp/ublox_bmd_345/download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/ublox_mini_nora_b1/debug.sh b/hw/bsp/ublox_mini_nora_b1/debug.sh
index f1ec3616c..6c86d934c 100755
--- a/hw/bsp/ublox_mini_nora_b1/debug.sh
+++ b/hw/bsp/ublox_mini_nora_b1/debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_app"
diff --git a/hw/bsp/ublox_mini_nora_b1/net/debug.sh b/hw/bsp/ublox_mini_nora_b1/net/debug.sh
index beb47e058..23fe145ea 100755
--- a/hw/bsp/ublox_mini_nora_b1/net/debug.sh
+++ b/hw/bsp/ublox_mini_nora_b1/net/debug.sh
@@ -31,7 +31,7 @@
#Use custom ports for debuging so that newt debug works on both cores
EXTRA_JTAG_CMD="-port 3334"
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="nrf5340_xxaa_net"
diff --git a/hw/bsp/usbmkw41z/usbkw41z_debug.sh b/hw/bsp/usbmkw41z/usbkw41z_debug.sh
index 90d0596bd..1e590b03b 100755
--- a/hw/bsp/usbmkw41z/usbkw41z_debug.sh
+++ b/hw/bsp/usbmkw41z/usbkw41z_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
FILE_NAME=$BIN_BASENAME.elf
JLINK_DEV="MKW41Z512xxx4"
diff --git a/hw/bsp/usbmkw41z/usbkw41z_download.sh b/hw/bsp/usbmkw41z/usbkw41z_download.sh
index 78dbe8321..5108d56e1 100755
--- a/hw/bsp/usbmkw41z/usbkw41z_download.sh
+++ b/hw/bsp/usbmkw41z/usbkw41z_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/jlink.sh
+. "$CORE_PATH"/hw/scripts/jlink.sh
if [ "$MFG_IMAGE" ]; then
FLASH_OFFSET=0x0
diff --git a/hw/bsp/vbluno51/vbluno51_debug.sh b/hw/bsp/vbluno51/vbluno51_debug.sh
index b61ca44fb..03676e6ed 100755
--- a/hw/bsp/vbluno51/vbluno51_debug.sh
+++ b/hw/bsp/vbluno51/vbluno51_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/vbluno51/vbluno51_download.sh b/hw/bsp/vbluno51/vbluno51_download.sh
index 4af0e0bf5..d43a30819 100755
--- a/hw/bsp/vbluno51/vbluno51_download.sh
+++ b/hw/bsp/vbluno51/vbluno51_download.sh
@@ -29,7 +29,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf51.cfg"
diff --git a/hw/bsp/vbluno52/vbluno52_debug.sh b/hw/bsp/vbluno52/vbluno52_debug.sh
index 213ea2e59..4b0826e2d 100755
--- a/hw/bsp/vbluno52/vbluno52_debug.sh
+++ b/hw/bsp/vbluno52/vbluno52_debug.sh
@@ -28,7 +28,7 @@
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
FILE_NAME=$BIN_BASENAME.elf
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/vbluno52/vbluno52_download.sh b/hw/bsp/vbluno52/vbluno52_download.sh
index e00fd188a..a392fc696 100755
--- a/hw/bsp/vbluno52/vbluno52_download.sh
+++ b/hw/bsp/vbluno52/vbluno52_download.sh
@@ -28,7 +28,7 @@
# - FLASH_OFFSET contains the flash offset to download to
# - BOOT_LOADER is set if downloading a bootloader
-. $CORE_PATH/hw/scripts/openocd.sh
+. "$CORE_PATH"/hw/scripts/openocd.sh
CFG="-f interface/cmsis-dap.cfg -f target/nrf52.cfg"
diff --git a/hw/bsp/weact_g431cb/debug.sh b/hw/bsp/weact_g431cb/debug.sh
index 8445f238e..e2406916c 100755
--- a/hw/bsp/weact_g431cb/debug.sh
+++ b/hw/bsp/weact_g431cb/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stlink.sh
+. "$CORE_PATH"/hw/scripts/stlink.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/weact_h503cb/debug.sh b/hw/bsp/weact_h503cb/debug.sh
index 28886adf6..98c4601c0 100755
--- a/hw/bsp/weact_h503cb/debug.sh
+++ b/hw/bsp/weact_h503cb/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stm32_programmer.sh
+. "$CORE_PATH"/hw/scripts/stm32_programmer.sh
FILE_NAME=$BIN_BASENAME.elf
diff --git a/hw/bsp/weact_h743vi/debug.sh b/hw/bsp/weact_h743vi/debug.sh
index 28886adf6..98c4601c0 100644
--- a/hw/bsp/weact_h743vi/debug.sh
+++ b/hw/bsp/weact_h743vi/debug.sh
@@ -27,7 +27,7 @@
# - RESET set if target should be reset when attaching
# - NO_GDB set if we should not start gdb to debug
#
-. $CORE_PATH/hw/scripts/stm32_programmer.sh
+. "$CORE_PATH"/hw/scripts/stm32_programmer.sh
FILE_NAME=$BIN_BASENAME.elf