From: Alejandro Colomar Date: Wed, 29 Oct 2025 21:12:09 +0000 (+0100) Subject: src/bin/grepc: Use if/else instead of && and || X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f21e4d6076558ef523a9b73cd817aa5349d42bc;p=thirdparty%2Fman-pages.git src/bin/grepc: Use if/else instead of && and || Signed-off-by: Alejandro Colomar --- diff --git a/src/bin/grepc b/src/bin/grepc index 161f51b53..93446366c 100755 --- a/src/bin/grepc +++ b/src/bin/grepc @@ -248,9 +248,11 @@ else fi \ | perl -p <( # shellcheck disable=SC2312 # We don't care about failures here. - test "$r" = 'yes' \ - && printf '%s\n' 's/('"$identifier"')/\033[32m\1\033[0m/' \ - || printf '%s\n' 's///'; + if test "$r" = 'yes'; then + printf '%s\n' 's/('"$identifier"')/\033[32m\1\033[0m/'; + else + printf '%s\n' 's///'; + fi; ) \ | if test -n "$l"; then sort \