diff options
author | Benjamin Denhartog <ben@sudoforge.com> | 2018-05-01 15:44:49 -0700 |
---|---|---|
committer | Benjamin Denhartog <ben@sudoforge.com> | 2018-05-01 18:58:57 -0700 |
commit | 8c5e834b60d5135123e779ed4a56f514fa45660f (patch) | |
tree | f2f0e7c9f97a159e67e1bd8ac3df49d03af56dfc | |
parent | 02bdc4a06fb2a2419b7cd29f19912052248d1c01 (diff) | |
download | pass-otp-8c5e834b60d5135123e779ed4a56f514fa45660f.tar.gz pass-otp-8c5e834b60d5135123e779ed4a56f514fa45660f.zip |
fix missing secret name when reading secret in `cmd_otp_append`
closes #75
-rwxr-xr-x | otp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -256,8 +256,9 @@ cmd_otp_append() { [[ $err -ne 0 || $# -ne 1 ]] && die "Usage: $PROGRAM $COMMAND append [--force,-f] [--echo,-e] [--secret, -s] [--issuer,-i issuer] [--account,-a account] pass-name" - local prompt uri + local uri local path="${1%/}" + local prompt="$path" local passfile="$PREFIX/$path.gpg" [[ -f $passfile ]] || die "Passfile not found" |