spm

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

commit fcdc5dc3572a81ff5fd255b956436c29549ec22d
parent 4a52711d0587917b0e44209f19291251d56b18e0
Author: Klemens Nanni <kl3@posteo.org>
Date:   Fri,  3 Jun 2016 17:10:45 +0200

'list' may be used without arguments

Diffstat:
Mspm.sh | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/spm.sh b/spm.sh @@ -72,8 +72,7 @@ add() { list() { [ -d "${STORE_DIR}" ] || mkdir -p "${STORE_DIR}" - [ -n "${1}" ] && [ ! -d "${STORE_DIR}/${1}" ] \ - && die "No such group. See 'spm list'." + [ -d "${STORE_DIR}/${1}" ] || die "No such group. See 'spm list'." tree ${grps_only:+-d} --noreport -l --dirsfirst --sort=name -C \ -- "${STORE_DIR}/${1}" \