fix missing secret name when reading secret in `cmd_otp_append`

closes #75
This commit is contained in:
Benjamin Denhartog 2018-05-01 15:44:49 -07:00
parent 02bdc4a06f
commit 8c5e834b60
No known key found for this signature in database
GPG Key ID: 1F3358A137D0D25C
1 changed files with 2 additions and 1 deletions

View File

@ -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"