Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeed_markread: fail early if creating a temporary file failed - sfeed - RSS an…
git clone git://git.codemadness.org/sfeed
Log
Files
Refs
README
LICENSE
---
commit 92e833940f8a418157e84f8c1827c40a6a8a44c3
parent c63b60816ff996c89a07131da411269152852cd7
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 7 Jul 2023 11:47:31 +0200
sfeed_markread: fail early if creating a temporary file failed
Diffstat:
M sfeed_markread | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sfeed_markread b/sfeed_markread
@@ -18,7 +18,7 @@ read)
cat >> "${urlfile}"
;;
unread)
- tmp=$(mktemp)
+ tmp="$(mktemp)" || exit 1
trap "rm -f ${tmp}" EXIT
[ -f "${urlfile}" ] || touch "${urlfile}" 2>/dev/null
LC_ALL=C awk -F '\t' '
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.