|
|
sfeed_markread: fail early if creating a temporary file failed - sfeed - RSS and Atom parser |
|
|
 |
git clone git://git.codemadness.org/sfeed (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 92e833940f8a418157e84f8c1827c40a6a8a44c3 |
|
|
 |
parent c63b60816ff996c89a07131da411269152852cd7 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
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' ' |
|