Skip to content

Commit 3e59d85

Browse files
authored
Fix unbounded variable error on Bash 3.2
`"${@}"` is an unbound variable on Bash 3.2, while `"$@"` is not, and Bash 3.2 is the pre-installed version on macOS.
1 parent 12b4727 commit 3e59d85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ function retry {
2626
}
2727

2828
workspace_test() {
29-
cross build --target "${TARGET}" --workspace "${@}"
30-
cross run --target "${TARGET}" -p binary "${@}"
29+
# "${@}" is an unbound variable for bash 3.2, which is the installed version on macOS
30+
cross build --target "${TARGET}" --workspace "$@"
31+
cross run --target "${TARGET}" -p binary "$@"
3132
cross run --target "${TARGET}" --bin dependencies \
32-
--features=dependencies "${@}"
33+
--features=dependencies "$@"
3334
}
3435

3536
main() {

0 commit comments

Comments
 (0)