spm

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

commit 8346d757f6b9ddc63163dd7d4a6160b87d3d505f
parent 4a8356cce2cf293d8ab50875c1f3050008d573dc
Author: Klemens Nanni <kl3@posteo.org>
Date:   Mon, 29 Feb 2016 20:56:36 +0100

Revert "No need for dirname"

This reverts commit 0a66d591490a277476fcb84f979b8b97bf1391f3.

This obviously breaks 'tpm insert foo/bar' if the group 'foo' doesn't
exist, stupid me didn't see this in the first place while trying to
clean things up.

Diffstat:
Mtpm | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tpm b/tpm @@ -80,7 +80,7 @@ insert() { [ -z "${password}" ] && abort "You didn't specify a password." - [ -d "${STORE_DIR}" ] || mkdir -p "${STORE_DIR}" + mkdir -p "$(dirname "${STORE_DIR}"/"${1}".gpg)" printf '%s\n' "${password}" \ | gpg2 ${GPG_OPTS} --encrypt --output "${STORE_DIR}"/"${1}".gpg }