1
0
Fork 0

Enhance less command in readwwwlog

This commit is contained in:
tastytea 2022-04-15 05:42:04 +02:00
parent 0f1a78a9f7
commit bb8fe8f958
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -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}