1
0
Fork 0

Break up too long line

This commit is contained in:
tastytea 2022-04-15 07:30:40 +02:00
parent 35ebd713e5
commit e8fa980d8e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ for url in ${urls}; do
sleep 1 # dpaste.com workaround
local file="$(mktemp --suffix='.readwwwlog')"
curl --silent --location --output ${file} ${url}
${TERMINAL} ${termopts} -e less --LINE-NUMBERS --pattern='(error|fail):' ${file}
${TERMINAL} ${termopts} -e \
less --LINE-NUMBERS --pattern='(error|fail):' ${file}
rm ${file}
else
${default_cmd} ${url}