summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:58:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 18:58:11 +0200
commite14a170d577783ba7365555cb464488c72f279ce (patch)
tree4535a47a6d65f5284abbcdec64911723e7d490fd
parent69eb9f153155fbb0af1305e1de2f5ee57dbcce49 (diff)
downloadpass-e14a170d577783ba7365555cb464488c72f279ce.tar.gz
pass-e14a170d577783ba7365555cb464488c72f279ce.tar.bz2
pass-e14a170d577783ba7365555cb464488c72f279ce.zip
grep: we need to not throw away the return value
-rwxr-xr-xsrc/password-store.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 3ac0fb4..daadac2 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -366,9 +366,9 @@ cmd_grep() {
exit 1
fi
agent_check
- local search="$1" passfile
+ local search="$1" passfile grepresults
while read -r -d "" passfile; do
- local grepresults="$(gpg -d $GPG_OPTS "$passfile" | grep --color=always "$search")"
+ grepresults="$(gpg -d $GPG_OPTS "$passfile" | grep --color=always "$search")"
[ $? -ne 0 ] && continue
passfile="${passfile%.gpg}"
passfile="${passfile#$PREFIX/}"
>2008-07-04Some more dependency awarenessRené 'Necoro' Neumann5-23/+59 2008-07-03Some window refinementRené 'Necoro' Neumann1-109/+126 2008-07-03Removed XSD_LOCATION -- as there is no more xsd ;)René 'Necoro' Neumann2-5/+1 2008-07-03Updated setup.py to install the correct set of pluginsRené 'Necoro' Neumann1-3/+2 2008-07-03Ported etc-proposals pluginRené 'Necoro' Neumann3-50/+43 2008-07-03Ported gpytage pluginRené 'Necoro' Neumann2-16/+14 2008-07-03Ported Notify pluginRené 'Necoro' Neumann4-37/+51 2008-07-03Remove xsd and -x cmdline optionRené 'Necoro' Neumann2-107/+1 2008-07-03Ported completelyRené 'Necoro' Neumann3-548/+54 2008-07-03Should show dependencies nowRené 'Necoro' Neumann2-82/+128 2008-07-03Use __slots__ for the PkgData class to save memoryRené 'Necoro' Neumann1-2/+3 2008-07-03New plugin system - first hackRené 'Necoro' Neumann2-420/+683 2008-06-30Now the new design is able to do the same as the old oneRené 'Necoro' Neumann3-168/+182 2008-06-30First draft of the new plugin windowRené 'Necoro' Neumann1-8/+172 2008-06-30Added stuff to plugin.pyRené 'Necoro' Neumann1-2/+24 2008-06-30Only add a package to mergequeue if everything went fineRené 'Necoro' Neumann1-1/+1 2008-06-25Now load 22 versions when running the correct portageRené 'Necoro' Neumann4-8/+18 2008-06-25Added Package_22 and System_22René 'Necoro' Neumann4-5/+63