aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commit4d28d8fe4d3f557adff401da0f6a21555195debb (patch)
treebc30571bc34fd037b04a8d03ecb19b87f40d1f32
parent402eca0a094ffb9592581435cee2799470b2fdb7 (diff)
downloadgit-remote-gcrypt-4d28d8fe4d3f557adff401da0f6a21555195debb.zip
git-remote-gcrypt-4d28d8fe4d3f557adff401da0f6a21555195debb.tar.gz
git-remote-gcrypt-4d28d8fe4d3f557adff401da0f6a21555195debb.tar.bz2
Do not use grep -F (busybox incompatible)
-rwxr-xr-xgit-remote-gcrypt10
1 files changed, 5 insertions, 5 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 13ca36f..19565ac 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -442,7 +442,7 @@ repack_if_needed()
if isnull "$pkeep_"; then
n_=$(xecho "$Packlist" | wc -l)
else
- n_=$(xecho "$Packlist" | grep -v -F -e "$pkeep_" | wc -l)
+ n_=$(xecho "$Packlist" | grep -v -e "$pkeep_" | wc -l)
fi
if [ $Repack_limit -gt "$n_" ]; then
return
@@ -458,7 +458,7 @@ repack_if_needed()
do
isnonnull "$packline_" || continue
if isnonnull "$pkeep_" &&
- xecho "$packline_" | grep -q -F -e "$pkeep_"
+ xecho "$packline_" | grep -q -e "$pkeep_"
then
continue
fi
@@ -478,8 +478,8 @@ repack_if_needed()
Packlist_delete=$premote_
Packlist=
else
- Packlist_delete=$(xecho "$premote_" | xgrep -v -F -e "$pkeep_")
- Packlist=$(xecho "$Packlist" | xgrep -F -e "$pkeep_")
+ Packlist_delete=$(xecho "$premote_" | xgrep -v -e "$pkeep_")
+ Packlist=$(xecho "$Packlist" | xgrep -e "$pkeep_")
fi
pack_id=$(pack_hash < "$TmpPack_Encrypted")
@@ -537,7 +537,7 @@ do_fetch()
premote_=$(xecho "$Packlist" | cut -f 1-2 -d ' ')
# The `+` for $GITCEPTION is pointless but we will be safe for stacking
phave_="$(cat "$Localdir/have_packs+" 2>/dev/null || :)"
- pneed_="$(xecho "$premote_" | xgrep -F -vx -e "$phave_")"
+ pneed_="$(xecho "$premote_" | xgrep -v -x -e "$phave_")"
xecho "$pneed_" | while read packline_
do