diff options
| author | Paul Buetow <paul@buetow.org> | 2011-01-14 12:09:17 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2011-01-14 12:09:17 +0000 |
| commit | 88d5a6f6a1d620b6f3f600c7057cf26591bae559 (patch) | |
| tree | e4156e98a7a24392bbf7b2bb6c1dbf52a0693493 | |
| parent | 1e2a9662b78e925a845df439fedeec47e36e891e (diff) | |
pwhelp prints version
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rwxr-xr-x | pwgrep.sh | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,6 @@ +Fri Jan 14 18:06:57 CET 2011 +* pwhelp prints now pwgrep version + Mo 3. Jan 08:04:13 CET 2011 - v0.8.1-pre-1 * Initial new version made @@ -42,6 +42,10 @@ function source_config () { fi } +function pwgrep_version () { + sed -n '/# pwgrep v/ { s/# //; p; q; }' $0 +} + function configure () { # Reading the current configuration source_config @@ -247,6 +251,7 @@ function fwipe () { } function pwhelp () { + info $(pwgrep_version) info Possible operations are: cat <<END fwipe <FILE> - Wiping a file |
