mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
portably configure tempdir in configure-helper.sh
fixes a `make test` failure on macOS
This commit is contained in:
parent
b2b8c1f18d
commit
299c561b10
@ -608,7 +608,7 @@ function append_or_replace_prefixed_line {
|
||||
local -r prefix="${2:-}"
|
||||
local -r suffix="${3:-}"
|
||||
local -r dirname=$(dirname "${file}")
|
||||
local -r tmpfile=$(mktemp -t filtered.XXXX --tmpdir="${dirname}")
|
||||
local -r tmpfile=$(mktemp "${dirname}/filtered.XXXX")
|
||||
|
||||
touch "${file}"
|
||||
awk -v pfx="${prefix}" 'substr($0,1,length(pfx)) != pfx { print }' "${file}" > "${tmpfile}"
|
||||
|
Loading…
Reference in New Issue
Block a user