From 5e3b9eaf1f64b285d3d67a2ca18302d898ae41cf Mon Sep 17 00:00:00 2001 From: Andreas Bilke Date: Mon, 12 Sep 2016 10:08:32 +0200 Subject: 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 --- publish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'publish') 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" } -- cgit v1.2.3