readwwwlog: ignore case in error matching pattern

This commit is contained in:
tastytea 2022-04-18 05:41:35 +02:00
parent be36c6a182
commit 7903624fcf
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -38,7 +38,8 @@ for url in ${urls}; do
local file="$(mktemp --suffix='.readwwwlog')"
curl --silent --location --output ${file} ${url}
local -a cmd=(less --LINE-NUMBERS --pattern='(error|fail):' ${file})
local -a cmd=(less --LINE-NUMBERS --ignore-case \
--pattern='(error|fail):' ${file})
if [[ -o NO_INTERACTIVE ]]; then
cmd=(${TERMINAL} ${termopts} -e ${cmd})
fi