spm

Personal fork of spm (simple password manager)
git clone git@getsh.org:spm.git
Log | Files | Refs | README | LICENSE

commit 48162ee08dbec9b1b085842f1aa95b4cb107e69c
parent 65a5b7b3cd613cf8228501f181f087a836a63d29
Author: Klemens Nanni <kl3@posteo.org>
Date:   Mon, 29 Feb 2016 08:38:14 +0100

Simplify case structure

Diffstat:
Mtpm | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/tpm b/tpm @@ -94,16 +94,10 @@ insert() { [ $# -gt 2 ] && abort "tpm doesn't accept more than two arguments." case "${1}" in - "show") - show "${2}" + 'show'|'insert'|'list') + ${1} "${2}" ;; - "insert") - insert "${2}" - ;; - "list") - list "${2}" - ;; - "help") + 'help') usage ;; *)