summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-28 00:13:29 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-28 00:13:29 +0200
commit7f39ae29d58e0fb0a76c65c367508f7b047ad399 (patch)
tree70b0c8d94a143cdd16fc6a6fa829138bb74cb5bc
parent57d672a7a1f719ab414e292f2186e82aa4778ce3 (diff)
bin/pkg: vcs_incoming: Grep with trailing space to avoid duplicates
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index e0b7484..a16f01f 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -127,8 +127,8 @@ vcs_add () {
}
vcs_incoming () {
- [ "$(grep ^"$1" $PDIR/.list | cut -d ' ' -f 3)" \
- != "$(grep ^"$1" $PDIR/.list-remote | cut -d ' ' -f 3)" ]
+ [ "$(grep ^"$1 " $PDIR/.list | cut -d ' ' -f 3)" \
+ != "$(grep ^"$1 " $PDIR/.list-remote | cut -d ' ' -f 3)" ]
}
vcs_log () {