ACCUMULO-3373 Get thrift generation working again.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/211197ce Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/211197ce Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/211197ce Branch: refs/heads/metrics2 Commit: 211197ce590d802fb58d42d0204cc4db11c0ff03 Parents: 9be9576 Author: Josh Elser <els...@apache.org> Authored: Mon Dec 1 10:57:54 2014 -0500 Committer: Josh Elser <els...@apache.org> Committed: Mon Dec 1 10:57:54 2014 -0500 ---------------------------------------------------------------------- core/src/main/scripts/generate-thrift.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/211197ce/core/src/main/scripts/generate-thrift.sh ---------------------------------------------------------------------- diff --git a/core/src/main/scripts/generate-thrift.sh b/core/src/main/scripts/generate-thrift.sh index 050001e..9779b91 100755 --- a/core/src/main/scripts/generate-thrift.sh +++ b/core/src/main/scripts/generate-thrift.sh @@ -41,8 +41,8 @@ fail() { } # Test to see if we have thrift installed -VERSION=$(thrift -version 2>/dev/null | grep -F "${REQUIRED_THRIFT_VERSION}" | wc -l) -if [[ $VERSION != 1 ]] ; then +VERSION=$(thrift -version 2>/dev/null | grep -F "${REQUIRED_THRIFT_VERSION}" | wc -l | sed -e 's/^ *//' -e 's/ *$//') +if [[ "${VERSION}" != '1' ]] ; then # Nope: bail echo "****************************************************" echo "*** thrift is not available"