From 84e62a27aed00d442844842fcfd4213b19d8aad4 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 5 Oct 2023 22:05:52 +0200 Subject: update --- bin/gauth | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/gauth') diff --git a/bin/gauth b/bin/gauth index 0c11531..e2291dd 100755 --- a/bin/gauth +++ b/bin/gauth @@ -2,8 +2,9 @@ # Use backup from andOTP #cat ~/otp_accounts.json | +[ "$1" ] && post="grep -i $1" || post=cat gpg -qd ~/.otp.gpg | jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' | while read -r l s i; do printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")" -done +done | $post -- cgit v1.2.3