summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-01-10 21:07:01 +0000
committerPaul Buetow <paul@buetow.org>2010-01-10 21:07:01 +0000
commitad4eb8964d59b328256563e31222010c18c0f130 (patch)
treee5469a391028911d0b6b12e3811f2c5f13e1b1ac
parentb0f4f49463a87f0b135a8feae0c48ca255634dd3 (diff)
-rwxr-xr-xpwgrep.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/pwgrep.sh b/pwgrep.sh
index 5d654a6..2829198 100755
--- a/pwgrep.sh
+++ b/pwgrep.sh
@@ -108,7 +108,7 @@ function setwipecmd {
function pwgrep () {
search=$1
- [ -z $NOVERSIONING ] && $VERSIONUPDATE
+ [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null
info Searching for $search
gpg --decrypt $PWGREPDB | $AWK -v search="$search" '
@@ -131,7 +131,7 @@ function pwgrep () {
}
function pwedit () {
- [ -z $NOVERSIONING ] && $VERSIONUPDATE
+ [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null
cp -vp $PWGREPDB $PWGREPDB.`date +'%s'`.snap && \
gpg --decrypt $PWGREPDB > .database && \
vim --cmd 'set noswapfile' --cmd 'set nobackup' \
@@ -144,7 +144,7 @@ function pwedit () {
function pwfls () {
name=`echo $1 | sed 's/.gpg$//'`
- [ -z $NOVERSIONING ] && $VERSIONUPDATE
+ [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null
[ ! -e $PWFILEDIREXT ] && error $PWFILEDIREXT does not exist
@@ -170,7 +170,8 @@ function pwfadd () {
outfile=`basename $name`
fi
- [ -z $NOVERSIONING ] && $VERSIONUPDATE
+ [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null
+
[ ! -e $PWFILEWORKDIR ] && error $PWFILEWORKDIR does not exist
[ -z $name ] && error Missing argument
@@ -184,7 +185,8 @@ function pwfadd () {
function pwfdel () {
name=`echo $1 | sed 's/.gpg$//'`
- [ -z $NOVERSIONING ] && $VERSIONUPDATE
+ [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null
+
[ ! -e $PWFILEWORKDIR ] && error $PWFILEWORKDIR does not exist
[ -z $name ] && error Missing argument