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="&"