kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danburk...@apache.org
Subject incubator-kudu git commit: Fix lint.sh spurious errors on OS X
Date Tue, 24 May 2016 00:13:23 GMT
Repository: incubator-kudu
Updated Branches:
  refs/heads/master 578b51375 -> fd20b30f6


Fix lint.sh spurious errors on OS X

Change-Id: I48bf32d123e49e1106c6fbae58cb5fa815858f9d
Reviewed-on: http://gerrit.cloudera.org:8080/3155
Reviewed-by: Todd Lipcon <todd@apache.org>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/fd20b30f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/fd20b30f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/fd20b30f

Branch: refs/heads/master
Commit: fd20b30f60f98ef2c66c0c6fad6ff5adb4277a6d
Parents: 578b513
Author: Dan Burkert <dan@cloudera.com>
Authored: Fri May 20 12:13:02 2016 -0700
Committer: Dan Burkert <dan@cloudera.com>
Committed: Tue May 24 00:12:58 2016 +0000

----------------------------------------------------------------------
 build-support/lint.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/fd20b30f/build-support/lint.sh
----------------------------------------------------------------------
diff --git a/build-support/lint.sh b/build-support/lint.sh
index 180491e..fef47a6 100755
--- a/build-support/lint.sh
+++ b/build-support/lint.sh
@@ -19,7 +19,7 @@
 
 ROOT=$(cd $(dirname $BASH_SOURCE)/..; pwd)
 
-TMP=$(mktemp)
+TMP=$(mktemp -t kudu-lint.XXXXXXXXX)
 trap "rm $TMP" EXIT
 
 ONLY_CHANGED=false
@@ -56,6 +56,6 @@ $ROOT/thirdparty/installed/bin/cpplint.py \
 
 NUM_ERRORS=$(grep "Total errors found" $TMP | awk '{print $4}')
 
-if [ "$NUM_ERRORS" -ne 0 ]; then
+if [[ "$NUM_ERRORS" -ne 0 ]]; then
   exit 1
 fi


Mime
View raw message