readwwwlog: Start at line 1 if pattern is not found
This commit is contained in:
parent
a73f29871c
commit
a5b424073c
|
@ -36,7 +36,7 @@ for url in ${urls}; do
|
|||
local file="$(mktemp --suffix='.readwwwlog')"
|
||||
curl --silent --location --output ${file} ${url}
|
||||
|
||||
local -a cmd=(less --LINE-NUMBERS --ignore-case \
|
||||
local -a cmd=(less +1 --LINE-NUMBERS --ignore-case \
|
||||
--pattern='(error|fail):' ${file})
|
||||
if [[ -o NO_INTERACTIVE ]]; then
|
||||
cmd=(${TERMINAL} ${termopts} -e ${cmd})
|
||||
|
|
Loading…
Reference in New Issue
Block a user