spm

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

commit bfe99250d75e54ad8031b1604d0f2634809880a6
parent cfb81e80256e8be94435e80ffa0bd5f474cbdbc6
Author: Klemens Nanni <kl3@posteo.org>
Date:   Mon, 16 May 2016 01:03:16 +0200

Remove negation/swap if..else blocks (style fix)

Diffstat:
Mtpm.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tpm.sh b/tpm.sh @@ -22,10 +22,10 @@ umask 077 GPG_OPTS='--quiet --yes --batch' STORE_DIR="${PASSWORD_STORE_DIR:-${HOME}/.tpm}" -if [ -n "${PASSWORD_STORE_KEY}" ]; then - GPG_OPTS="${GPG_OPTS} --recipient ${PASSWORD_STORE_KEY}" -else +if [ -z "${PASSWORD_STORE_KEY}" ]; then GPG_OPTS="${GPG_OPTS} --default-recipient-self" +else + GPG_OPTS="${GPG_OPTS} --recipient ${PASSWORD_STORE_KEY}" fi ## Helper