mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #99019 from BenTheElder/unit-test-cluster-macos
portably configure tempdir in configure-helper.sh
This commit is contained in:
commit
474118b0ee
@ -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