From 5f3bc782bca6e55811f3b8c5e3b78c309dae2c7f Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 29 Sep 2014 22:34:32 -0400 Subject: [PATCH] Fix for sed cmd on linux --- githelpers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githelpers b/githelpers index 0c33b69..69bcc86 100644 --- a/githelpers +++ b/githelpers @@ -29,9 +29,9 @@ show_git_head() { pretty_git_log() { git log --graph --abbrev-commit --date=relative --pretty="tformat:${FORMAT}" $* | # Repalce (2 years ago) with (2 years) - sed -Ee 's/(^[^<]*) ago)/\1)/' | + sed -Ee 's/(^[^<]*\) ago)/\1)/' | # Replace (2 years, 5 months) with (2 years) - sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?)/\1)/' | + sed -Ee 's/(^[^<]*\), [[:digit:]]+ .*months?)/\1)/' | # Line columns up based on } delimiter column -s '}' -t | # Page only if we need to