Skip to content

Commit 2e377c5

Browse files
committed
bin/test-exercise: quote argument to cd to prevent accidents
shellcheck 2086
1 parent a417128 commit 2e377c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/test-exercise

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ done
9292
# run tests from within exercise directory
9393
# (use subshell so we auto-reset to current pwd after)
9494
(
95-
cd $exercise
95+
cd "$exercise"
9696
if [ -n "$CLIPPY" ]; then
9797
# Consider any Clippy to be an error in tests only.
9898
# For now, not the example solutions since they have many Clippy warnings,

0 commit comments

Comments
 (0)