From 935c5a37b36866ae18c686a769a3cc6fa485e9c7 Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Wed, 8 Jul 2015 18:59:10 +0200 Subject: [PATCH] Avoid spawning subshell --- bin/git-effort | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-effort b/bin/git-effort index 7f992dd..47524f1 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -61,7 +61,7 @@ color_for() { effort() { file=$1 local commit_dates=`date $file` - commits=`echo "$commit_dates" | wc -l` + commits=`wc -l <<<"$(echo "$commit_dates")"` color='90' # ignore <= --above