diff --git a/scripts/format.sh b/scripts/format.sh index 357403ec9ffb8..3fd230ae9ee35 100755 --- a/scripts/format.sh +++ b/scripts/format.sh @@ -6,7 +6,7 @@ section() { echo "- $*" >&2 } -WORKSPACE_ROOT="$(bazel info workspace 2>/dev/null)" +WORKSPACE_ROOT="$(bazel info workspace)" GOOGLE_JAVA_FORMAT="$(bazel run --run_under=echo //scripts:google-java-format)"