summaryrefslogtreecommitdiff
path: root/include/pkglist
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 /include/pkglist
parent104ee0a5a3297682de6db8af3a949b9b2e4bd28f (diff)
pkglist: Use zsh features te replace fgrep and cut
Diffstat (limited to 'include/pkglist')
-rwxr-xr-xinclude/pkglist4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pkglist b/include/pkglist
index a727587..5ae2db5 100755
--- a/include/pkglist
+++ b/include/pkglist
@@ -13,10 +13,10 @@ for i in *(/,@); {
if [[ -d $i/.git ]] {
if (( newmode )) {
echo -n "$i git "
- git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2
+ echo ${$(git --git-dir=$i/.git log -n 1)[2]}
} else {
echo -n "$i git " >> .list
- git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 >> .list
+ echo ${$(git --git-dir=$i/.git log -n 1)[2]} >> .list
}
} else {
echo "$i: Unsupported or no repository" >&2