summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bilke <abilke@cosy.sbg.ac.at>2016-09-12 10:08:32 +0200
committerPeter Palfrader <peter@palfrader.org>2016-09-12 10:15:13 +0200
commit5e3b9eaf1f64b285d3d67a2ca18302d898ae41cf (patch)
treea06f3172e2ba495f191e0045d132f14bcad88e8f
parente22dee3594852daf948582b0602f8fc9b9bf6e59 (diff)
Use mktemp instead of tempfile
tempfile(1) is deprecated and mktemp(1) should be used instead. Also some distributions does not deliver a tempfile implementation. Signed-off-by: Peter Palfrader <peter@palfrader.org>
-rwxr-xr-xpublish2
1 files changed, 1 insertions, 1 deletions
diff --git a/publish b/publish
index 059ca0a..028bd29 100755
--- a/publish
+++ b/publish
@@ -101,7 +101,7 @@ history_append() {
time=$(date --utc --rfc-3339='seconds')
echo $time $1 $2 >>"$history_file"
- history_tmp=$( tempfile )
+ history_tmp=$( mktemp )
cat "$history_file" | tail --lines="$history_lines" >"$history_tmp"
mv "$history_tmp" "$history_file"
}