diff options
| author | Paul Buetow <paul@buetow.org> | 2010-07-18 08:14:19 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2010-07-18 08:14:19 +0000 |
| commit | 6b10b8bb7b767a7d6894a8124492356e63bf8469 (patch) | |
| tree | 0d45e0acdc58666cc594a135986751c4dda48db6 | |
| parent | 905bd4a6d05cd92c574e11f25a43d60fe437228b (diff) | |
branched v0.50.5.0@89
| -rw-r--r-- | CHANGELOG.txt | 4 | ||||
| -rwxr-xr-x | pwgrep.sh | 29 |
2 files changed, 24 insertions, 9 deletions
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" @@ -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 |
