You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by zm...@apache.org on 2015/11/12 00:50:05 UTC

aurora git commit: Update pants bootstrap script to be agnostic to sed version.

Repository: aurora
Updated Branches:
  refs/heads/master 0b025a7d0 -> cf386110c


Update pants bootstrap script to be agnostic to sed version.

Reviewed at https://reviews.apache.org/r/40204/


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

Branch: refs/heads/master
Commit: cf386110ca92d3db8de6677ffee2ce6233ffa64a
Parents: 0b025a7
Author: Joe Smith <ya...@gmail.com>
Authored: Wed Nov 11 15:49:53 2015 -0800
Committer: Zameer Manji <zm...@apache.org>
Committed: Wed Nov 11 15:49:53 2015 -0800

----------------------------------------------------------------------
 pants | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/cf386110/pants
----------------------------------------------------------------------
diff --git a/pants b/pants
index 4709799..4239bee 100755
--- a/pants
+++ b/pants
@@ -67,7 +67,7 @@ function bootstrap_pants {
   pants_requirement="pantsbuild.pants"
   pants_version=$(
     grep -E "^[[:space:]]*pants_version" pants.ini 2>/dev/null | \
-      sed -E 's|^[[:space:]]*pants_version[:=][[:space:]]*([^[:space:]]+)|\1|'
+      cut -f2 -d: | tr -d ""
   )
   if [[ -n "${pants_version}" ]]
   then