summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-07-07 11:47:31 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-07-07 11:47:31 +0200
commit92e833940f8a418157e84f8c1827c40a6a8a44c3 (patch)
tree7654130ba3bdeebf6a4beb3bc78c38ed3ba2b773
parentc63b60816ff996c89a07131da411269152852cd7 (diff)
sfeed_markread: fail early if creating a temporary file failed
-rwxr-xr-xsfeed_markread2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_markread b/sfeed_markread
index b262bdd..cad71bc 100755
--- 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' '