diff options
author | Tad Fisher <tadfisher@gmail.com> | 2018-05-04 09:13:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 09:13:23 -0700 |
commit | 938f7fd3b6ab4a4c6008ef84e47f9449cc792625 (patch) | |
tree | ec2408335b1a827efca809467ad53b90b80d542e | |
parent | 0f1bb0a55de24faff274ec27b6ebd679e19dd764 (diff) | |
parent | 8c5e834b60d5135123e779ed4a56f514fa45660f (diff) | |
download | pass-otp-938f7fd3b6ab4a4c6008ef84e47f9449cc792625.tar.gz pass-otp-938f7fd3b6ab4a4c6008ef84e47f9449cc792625.zip |
Merge pull request #76 from sudoforge/feature/otp-append-fix-missing-entry-name
fix missing secret name when reading secret in `cmd_otp_append`
-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" |