diff options
| -rw-r--r-- | CHANGELOG.txt | 16 | ||||
| -rwxr-xr-x | pwgrep.sh | 22 |
2 files changed, 27 insertions, 11 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9e6d82e..69e43ed 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,12 +1,16 @@ -Sun Jul 18 10:10:29 CEST 2010 -v0.5-pre-0 - 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" +Fri Jul 30 23:31:12 CEST 2010 +v0.5-pre-3 - new command pwldb, which lists all databases available + +Wed Jul 28 18:44:03 CEST 2010 +v0.5-pre-2 - new option -d DATABASE, so its multi database capable now Wed Jul 28 18:16:09 CEST 2010 v0.5-pre-1 - pwfcat redirects all informational message to stderr. means pwfcat includes no informational messages of pwgrep itself anymore. -Wed Jul 28 18:44:03 CEST 2010 -v0.5-pre-2 - new option -d DATABASE, so its multi database capable now +Sun Jul 18 10:10:29 CEST 2010 +v0.5-pre-0 - 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-pre-2 (c) 2009, 2010 by Paul C. Buetow +# pwgrep v0.5-pre-3 (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 @@ -31,8 +31,10 @@ # You can overwrite the default values by setting env. variables # or by just editing this file. +DEFAULTPWGREPDB=database + [ -z $SVN_EDITOR ] && SVN_EDITOR=ex -[ -z $PWGREPDB ] && PWGREPDB=database.gpg +[ -z $PWGREPDB ] && PWGREPDB=$DEFAULTPWGREPDB.gpg # The PWGREPWORDIR should be in its own versioning repository. # For password revisions. @@ -95,13 +97,13 @@ function findbin { function setawkcmd { AWK=`findbin "$TRYAWKLIST"` [ -z $AWK ] && error No awk found in $PATH - info Using $AWK + #info Using $AWK } function setsedcmd { SED=`findbin "$TRYSEDLIST"` [ -z $SED ] && error No sed found in $PATH - info Using $SED + #info Using $SED } function setwipecmd { @@ -116,7 +118,7 @@ function setwipecmd { fi fi - info Using $WIPE + info Using $WIPE for secure file deletion } function pwgrep () { @@ -155,6 +157,13 @@ function pwedit () { [ -z $NOVERSIONING ] && $VERSIONCOMMIT } +function pwldb () { + [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null + echo Available Databases: + ls *.gpg | sed 's/\.gpg$//' + echo Current default: $DEFAULTPWGREPDB +} + function pwfls () { name=`echo $1 | sed 's/.gpg$//'` [ -z $NOVERSIONING ] && $VERSIONUPDATE 2>&1 >/dev/null @@ -255,6 +264,9 @@ case $BASENAME in pwedit) pwedit ;; + pwldb) + pwldb + ;; pwfls) pwfls $ARGS ;; |
