Skip to content

Commit 4ae0b35

Browse files
author
Evan Benn
committed
Fix some whitespace quoting errors
1 parent 1ff656c commit 4ae0b35

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pico_setup.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fail() {
147147

148148
validate_git_repo() {
149149
# 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
151151
}
152152

153153
validate_toolchain_linux() {
@@ -365,13 +365,13 @@ validate_pico_examples() {
365365
validate_git_repo pico-examples
366366

367367
# 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
369369

370370
# 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
372372

373373
# 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
375375
}
376376

377377
validate_pico_playground() {
@@ -397,7 +397,7 @@ validate_picotool() {
397397
validate_git_repo picotool
398398

399399
# test that the binary is built
400-
test -x ${TARGET_DIR}/picotool/build/picotool || fail
400+
test -x "${TARGET_DIR}"/picotool/build/picotool || fail
401401

402402
# test that picotool is installed in the expected location
403403
test -x /usr/local/bin/picotool || fail
@@ -428,7 +428,7 @@ validate_openocd() {
428428
validate_git_repo openocd
429429

430430
# test that the binary is built
431-
test -x ${TARGET_DIR}/openocd/src/openocd || fail
431+
test -x "${TARGET_DIR}"/openocd/src/openocd || fail
432432
}
433433

434434
setup_openocd() {
@@ -458,7 +458,7 @@ validate_picoprobe() {
458458
validate_git_repo picoprobe || fail
459459

460460
# 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
462462
}
463463

464464
setup_picoprobe() {

0 commit comments

Comments
 (0)