@@ -147,7 +147,7 @@ fail() {
147
147
148
148
validate_git_repo () {
149
149
# tests that the given relative path exists and is a git repo
150
- git -C ${TARGET_DIR} /${1} status >& /dev/null || fail
150
+ git -C " ${TARGET_DIR} /${1} " status >& /dev/null || fail
151
151
}
152
152
153
153
validate_toolchain_linux () {
@@ -365,13 +365,13 @@ validate_pico_examples() {
365
365
validate_git_repo pico-examples
366
366
367
367
# test that blink is built
368
- test -f ${TARGET_DIR} /pico-examples/build/blink/blink.uf2 || fail
368
+ test -f " ${TARGET_DIR} /pico-examples/build/blink/blink.uf2" || fail
369
369
370
370
# test that hello_serial is built
371
- test -f ${TARGET_DIR} /pico-examples/build/hello_world/serial/hello_serial.uf2 || fail
371
+ test -f " ${TARGET_DIR} /pico-examples/build/hello_world/serial/hello_serial.uf2" || fail
372
372
373
373
# test that hello_usb is built
374
- test -f ${TARGET_DIR} /pico-examples/build/hello_world/usb/hello_usb.uf2 || fail
374
+ test -f " ${TARGET_DIR} /pico-examples/build/hello_world/usb/hello_usb.uf2" || fail
375
375
}
376
376
377
377
validate_pico_playground () {
@@ -397,7 +397,7 @@ validate_picotool() {
397
397
validate_git_repo picotool
398
398
399
399
# test that the binary is built
400
- test -x ${TARGET_DIR} /picotool/build/picotool || fail
400
+ test -x " ${TARGET_DIR} " /picotool/build/picotool || fail
401
401
402
402
# test that picotool is installed in the expected location
403
403
test -x /usr/local/bin/picotool || fail
@@ -428,7 +428,7 @@ validate_openocd() {
428
428
validate_git_repo openocd
429
429
430
430
# test that the binary is built
431
- test -x ${TARGET_DIR} /openocd/src/openocd || fail
431
+ test -x " ${TARGET_DIR} " /openocd/src/openocd || fail
432
432
}
433
433
434
434
setup_openocd () {
@@ -458,7 +458,7 @@ validate_picoprobe() {
458
458
validate_git_repo picoprobe || fail
459
459
460
460
# test that the binary is built
461
- test -f ${TARGET_DIR} /picoprobe/build/picoprobe.uf2 || fail
461
+ test -f " ${TARGET_DIR} " /picoprobe/build/picoprobe.uf2 || fail
462
462
}
463
463
464
464
setup_picoprobe () {
0 commit comments