xbps-src: cleaned up usage of mktemp(1).
This one was on my TODO for a long while... fixes unportable arguments (checked with the NetBSD's manual page).
This commit is contained in:
parent
ea7a6e858d
commit
f59b295903
9 changed files with 11 additions and 11 deletions
|
@ -5,7 +5,7 @@ collect_sonames() {
|
|||
local _destdir="$1" f _soname _fname _pattern
|
||||
local _pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)*$"
|
||||
local _versioned_pattern="^[[:alnum:]]+(.*)+\.so(\.[0-9]+)+$"
|
||||
local _tmpfile="$(mktemp)"
|
||||
local _tmpfile="$(mktemp || exit 1)"
|
||||
|
||||
if [ ! -d ${_destdir} ]; then
|
||||
rm -f ${_tmpfile}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue