From 9a7f7c91cd8d36f55f21ee6175eb400c35eb8b36 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sat, 12 Feb 2022 17:16:34 -0800 Subject: Resolve some shellcheck warnings --- otp.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otp.bash b/otp.bash index c56f502..852c8a1 100755 --- a/otp.bash +++ b/otp.bash @@ -334,7 +334,7 @@ cmd_otp_code() { [[ ! -f $passfile ]] && die "$path: passfile not found." contents=$($GPG -d "${GPG_OPTS[@]}" "$passfile") - while read -r -a line; do + while read -r line; do if [[ "$line" == otpauth://* ]]; then local uri="$line" otp_parse_uri "$line" @@ -406,7 +406,7 @@ cmd_otp_uri() { [[ ! -f $passfile ]] && die "Passfile not found" contents=$($GPG -d "${GPG_OPTS[@]}" "$passfile") - while read -r -a line; do + while read -r line; do if [[ "$line" == otpauth://* ]]; then otp_parse_uri "$line" break -- cgit v1.2.3