sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 2d413bee65d99bc8c481b91dbbb9560b37b883d2
parent c97b8246313046197158e5ff368b74ada1269960
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 11 Nov 2014 19:16:26 +0100

sfeed_update: remove redundant -t flag for mktemp

this makes it compatible with the current sbase mktemp

Diffstat:
Msfeed_update | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed_update b/sfeed_update @@ -95,7 +95,7 @@ feeds() { # load config file. loadconfig "$1" # fetch feeds and store in temporary file. -TMPDIR=$(mktemp -d -t "sfeed_XXXXXX") +TMPDIR=$(mktemp -d "/tmp/sfeed_XXXXXX") # get date of last modified feedfile in format: # YYYYmmdd HH:MM:SS [+-][0-9]* lastupdated=$(stat -c "%y" "$sfeedfile" 2> /dev/null | cut -c 1-4,6-7,9-10,11-19,30-) @@ -115,7 +115,7 @@ wait [ "$isrunning" = "0" ] && cleanup && exit 1 # concat all individual feed files to a single file. # NOTE: mktemp uses $TMPDIR for temporary directory. -tmpfile=$(mktemp -t "sfeed_XXXXXX") +tmpfile=$(mktemp "sfeed_XXXXXX") find "$TMPDIR" -type f -exec cat {} \; > "$tmpfile" # get new data and merge with old. merge "$sfeedfile" "$tmpfile" > "$sfeedfilenew"