iop: ssh_upgrade: Use mktemp instead of tempfile

The tempfile has been deprecated for a long time and is no longer
available on RHEL and Fedora, use mktemp instead.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
This commit is contained in:
Andreas Gnau 2022-09-14 18:40:32 +02:00
parent 5c94741584
commit 4890420a25

View file

@ -187,7 +187,7 @@ function upd_select {
function upd_select_start {
lines=$(tput lines)
cols=$(tput cols)
tempfile=$(tempfile 2>/dev/null) || tempfile=/tmp/test$$
tempfile="$(mktemp)"
trap "rm -f $tempfile" 0 1 2 5 15
upd_select