Make the shell script more readable

pull/21460/head
Lidi Zheng 5 years ago
parent e27782c1c5
commit 0fd79a7d9d
  1. 4
      tools/distrib/buildifier_format_code.sh
  2. 2
      tools/run_tests/sanity/check_buildifier.sh

@ -1,4 +1,4 @@
#! /bin/bash -e
#! /bin/bash
# Copyright 2019 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
BUILDIFIER_VERSION="0.29.0"
TEMP_BUILDIFIER_PATH="/tmp/buildifier"
EXTRA_BUILDIFIER_FLAGS=$*

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The script to check if Bazel files needs to be formatted.
# The script to check if Bazel files need to be formatted.
GIT_ROOT="$(dirname "$0")/../../.."
"$GIT_ROOT/tools/distrib/buildifier_format_code.sh" -mode=diff

Loading…
Cancel
Save