mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
5c94741584
commit
4890420a25
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue