Add suffix to temporary files created by readwwwlog

This commit is contained in:
tastytea 2022-04-15 05:23:52 +02:00
parent b73d32a30a
commit 0f1a78a9f7
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -23,7 +23,7 @@ for url in ${urls}; do
if curl --silent --location --head ${url} | grep -q 'text/plain'; then
sleep 1 # dpaste.com workaround
local file="$(mktemp)"
local file="$(mktemp --suffix='.readwwwlog')"
curl --silent --location --output ${file} ${url}
${TERMINAL} -e less ${file}
rm ${file}