From 92e833940f8a418157e84f8c1827c40a6a8a44c3 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 7 Jul 2023 11:47:31 +0200 Subject: sfeed_markread: fail early if creating a temporary file failed --- sfeed_markread | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfeed_markread') 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' ' -- cgit v1.2.3