Enhance less command in readwwwlog
This commit is contained in:
parent
0f1a78a9f7
commit
bb8fe8f958
|
@ -25,7 +25,7 @@ for url in ${urls}; do
|
|||
sleep 1 # dpaste.com workaround
|
||||
local file="$(mktemp --suffix='.readwwwlog')"
|
||||
curl --silent --location --output ${file} ${url}
|
||||
${TERMINAL} -e less ${file}
|
||||
${TERMINAL} -e less --LINE-NUMBERS --pattern='(error|fail):' ${file}
|
||||
rm ${file}
|
||||
else
|
||||
${default_cmd} ${url}
|
||||
|
|
Loading…
Reference in New Issue
Block a user