diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-07-07 11:47:31 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2023-07-07 11:47:31 +0200 |
commit | 92e833940f8a418157e84f8c1827c40a6a8a44c3 (patch) | |
tree | 7654130ba3bdeebf6a4beb3bc78c38ed3ba2b773 /sfeed_markread | |
parent | c63b60816ff996c89a07131da411269152852cd7 (diff) |
sfeed_markread: fail early if creating a temporary file failed
Diffstat (limited to 'sfeed_markread')
-rwxr-xr-x | sfeed_markread | 2 |
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' ' |