diff options
author | Tad Fisher <tadfisher@gmail.com> | 2022-02-12 17:16:34 -0800 |
---|---|---|
committer | Tad Fisher <129148+tadfisher@users.noreply.github.com> | 2022-02-12 17:19:39 -0800 |
commit | 9a7f7c91cd8d36f55f21ee6175eb400c35eb8b36 (patch) | |
tree | f4164887732807e3ddb01a104047c251555e89be | |
parent | de580749e2852b5e6e2c3e3eba6613a48c40adbb (diff) | |
download | pass-otp-9a7f7c91cd8d36f55f21ee6175eb400c35eb8b36.tar.gz pass-otp-9a7f7c91cd8d36f55f21ee6175eb400c35eb8b36.zip |
Resolve some shellcheck warnings
-rwxr-xr-x | otp.bash | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |