From 0f1a78a9f7aab00ccd7e5a3db0ec0ecec3b16484 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 15 Apr 2022 05:23:52 +0200 Subject: [PATCH] Add suffix to temporary files created by readwwwlog --- .config/zsh/functions/readwwwlog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/functions/readwwwlog b/.config/zsh/functions/readwwwlog index 92412eb..0a359ed 100755 --- a/.config/zsh/functions/readwwwlog +++ b/.config/zsh/functions/readwwwlog @@ -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}