From 6b10b8bb7b767a7d6894a8124492356e63bf8469 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 18 Jul 2010 08:14:19 +0000 Subject: branched v0.5 --- CHANGELOG.txt | 4 ++++ pwgrep.sh | 29 ++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 CHANGELOG.txt diff --git a/CHANGELOG.txt b/CHANGELOG.txt new file mode 100644 index 0000000..b8a4806 --- /dev/null +++ b/CHANGELOG.txt @@ -0,0 +1,4 @@ +Sun Jul 18 10:10:29 CEST 2010 +v0.5 - Offlinemode support (Option -o) which does not use the versioning + system (usable if there is no internet connection available atm). + e.g. "pwgrep -o foobar" diff --git a/pwgrep.sh b/pwgrep.sh index 08aaedb..a5e6a22 100755 --- a/pwgrep.sh +++ b/pwgrep.sh @@ -1,6 +1,6 @@ #!/bin/bash -# pwgrep v0.5-devel (c) 2009 by Dipl.-Inform. (FH) Paul C. Buetow +# pwgrep v0.5 (c) 2009, 2010 by Paul C. Buetow # pwgrep helps you to manage all your passwords using GnuGP # for encryption and a versioning system (subversion by default) # for keeping track all changes of your password database. In @@ -214,28 +214,39 @@ function fwipe () { setawkcmd setwipecmd -basename=`basename $0` -case $basename in +BASENAME=`basename $0` +ARGS=$@ + +case $1 in + -o) + # Offlinemode + NOVERSIONING=1 + ARGS=${ARGS[@]:2} + ;; + *) +esac + +case $BASENAME in pwgrep) - pwgrep $@ + pwgrep $ARGS ;; pwedit) pwedit ;; pwfls) - pwfls $@ + pwfls $ARGS ;; pwfcat) - pwfls $@ + pwfls $ARGS ;; pwfadd) - pwfadd $@ + pwfadd $ARGS ;; pwfdel) - pwfdel $@ + pwfdel $ARGS ;; fwipe) - fwipe $@ + fwipe $ARGS ;; *) error No such operation $basename -- cgit v1.2.3