From 3df3919e70b866b261e614d0b7327458f2853bbb Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 13 Oct 2021 16:43:36 -0400 Subject: [PATCH] satisfy newer shellsheck --- err | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/err b/err index 2e886de..76f3939 100644 --- a/err +++ b/err @@ -158,7 +158,7 @@ err-exit() { _chars="${#_cmdr}" _cmdr="${_cmdr#*$}" _cmdr="${_cmdr#{}" - if [[ $_chars == ${#_cmdr} ]]; then + if (( _chars == ${#_cmdr} )); then break fi _var="${_cmdr%%[^a-zA-Z0-9_]*}" @@ -172,7 +172,7 @@ err-exit() { if (( ${#_vars[@]} )); then set |& while read -r _l; do for _var in "${_vars[@]}"; do - if [[ $_l == $_var ]]; then + if [[ $_l == "$_var" ]]; then printf "%s\n" "$_l" >&2 fi done -- 2.25.1