summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt4
-rwxr-xr-xpwgrep.sh29
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"
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