From e19531d25245256e731963cc02b008b7f71ebdd5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Oct 2008 10:30:51 +0200 Subject: pkglist: Use zsh features te replace fgrep and cut --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index ab4c5f9..119114c 100755 --- a/bin/pkg +++ b/bin/pkg @@ -144,7 +144,7 @@ progress () { vcs_to_list () { if [[ -d $1/.git ]] { echo -n "$1 git " - git --git-dir=$1/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 + echo ${$(git --git-dir=$1/.git log -n 1)[2]} } else { warn "Unsupported or no repository: $1\n" } -- cgit v1.2.3