summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:16:26 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:16:26 +0100
commit2d413bee65d99bc8c481b91dbbb9560b37b883d2 (patch)
treed9fe054638417e09bef460b5803ef8379e607ed9
parentc97b8246313046197158e5ff368b74ada1269960 (diff)
sfeed_update: remove redundant -t flag for mktemp
this makes it compatible with the current sbase mktemp
-rwxr-xr-xsfeed_update4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_update b/sfeed_update
index 29968dd..312d1f2 100755
--- 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"