summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-09 10:30:51 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-09 10:30:51 +0200
commite19531d25245256e731963cc02b008b7f71ebdd5 (patch)
treebe8d982cffc02c3647ebd4babdf9ed7ae3a1e317 /bin
parent104ee0a5a3297682de6db8af3a949b9b2e4bd28f (diff)
pkglist: Use zsh features te replace fgrep and cut
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
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"
}