diff options
author | Andreas Bilke <abilke@cosy.sbg.ac.at> | 2016-09-12 10:08:32 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-09-12 10:15:13 +0200 |
commit | 5e3b9eaf1f64b285d3d67a2ca18302d898ae41cf (patch) | |
tree | a06f3172e2ba495f191e0045d132f14bcad88e8f | |
parent | e22dee3594852daf948582b0602f8fc9b9bf6e59 (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-x | publish | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" } |