From b3a9d1010bc2854ffdcfaf89a92e5720a8ea2a6a Mon Sep 17 00:00:00 2001 From: Asara Date: Thu, 20 Oct 2022 18:48:47 -0400 Subject: [PATCH] fix for codes that include a username/email --- otpish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otpish b/otpish index df7503b..f758c98 100755 --- a/otpish +++ b/otpish @@ -61,7 +61,7 @@ fi if [ "${COMMAND}" = "get" ]; then if [ -z ${NAME} ]; then echo get requires a name; exit; fi if ! [ -f ${OTP} ]; then echo no otps configured add one first; exit; fi - uri=$(age -i ${PRIVKEY} -d ${OTP} | grep "/${NAME}?") + uri=$(age -i ${PRIVKEY} -d ${OTP} | grep "/${NAME}") otp_info=$(echo -n ${uri} | cut -d '?' -f 2) oIFS=${IFS} IFS="&"