spm

simple password manager
git clone anongit@rnpnr.xyz:spm.git
Log | Files | Refs | Feed | README | LICENSE

Commit: bfe99250d75e54ad8031b1604d0f2634809880a6
Parent: cfb81e80256e8be94435e80ffa0bd5f474cbdbc6
Author: Klemens Nanni
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