sane-secrets-dump: fix oathtool invocation to always specify --totp

This commit is contained in:
2024-10-24 07:06:34 +00:00
parent a9c497dc0b
commit 344f08b12b

View File

@@ -122,7 +122,7 @@ main() {
printKeyValue "$format" "username" "$username"
printKeyValue "$format" "password" "$password"
if [ -n "$totp" ]; then
totp=$(echo "$totp" | oathtool -b -)
totp=$(echo "$totp" | oathtool -b --totp -)
printKeyValue "$format" "totp" "$totp"
fi
fi