logo

secret

Replacement to pass(1) based on reop(1)
commit: 61e263d64035aea5b9b09dac439a89d8c6ef29ad
parent: 08466cf3aa2e2d8140353a418dd52151bca8a4fa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 24 May 2020 17:37:27 +0200

pass2secret: Remove pass-otp migration

Diffstat:

Mpass2secret11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/pass2secret b/pass2secret @@ -31,17 +31,6 @@ do then echo "$passphrase" | secret write "$entry" else echo "following entry exists, ignoring: $entry" fi - - if [ ! -f "$workdir/$entry.oath.reop" ] && grep -q "^otpauth://" "$SECRET_FILE" - then - pass show "$entry" \ - | grep "^optauth://" \ - | sed \ - -e 's;^otpauth://totp/totp-secret?secret=;;' \ - -e 's;^;--base32 ;' > "$SECRET_FILE" - - echo "$passphrase" | secret write "${entry}.oath" - fi done shred -u "$SECRET_FILE"