mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-17 15:57:21 +03:00
Fix "unbound variable" error in fmt.sh (#933)
Seems like an array that is only declared but never assigned to cannot be dereferenced with `arr[@]` under `set -u`. We can easily work around this by using an empty string as default value like `:-`.
This commit is contained in:
parent
c3a8a4d02a
commit
ec0bba2488
2
fmt.sh
2
fmt.sh
@ -81,7 +81,7 @@ done
|
|||||||
trap - EXIT
|
trap - EXIT
|
||||||
|
|
||||||
# check for scala code style
|
# check for scala code style
|
||||||
run ./scalafmt.sh "${scalafmt_args[@]}"
|
run ./scalafmt.sh "${scalafmt_args[@]:-}"
|
||||||
|
|
||||||
# check for Bazel build files code formatting
|
# check for Bazel build files code formatting
|
||||||
run bazel run "$buildifier_target"
|
run bazel run "$buildifier_target"
|
||||||
|
Loading…
Reference in New Issue
Block a user