mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
descriminate more when parsing kube-env :(
I HATE BASH
This commit is contained in:
parent
69eaea2fcc
commit
1b8084fc2f
@ -1052,7 +1052,7 @@ function generate-certs {
|
||||
# $1 master env (kube-env of master; result of calling get-master-env)
|
||||
# $2 env key to use
|
||||
function get-env-val() {
|
||||
local match=`(echo "${1}" | grep ${2}) || echo ""`
|
||||
local match=`(echo "${1}" | grep -E "^${2}:") || echo ""`
|
||||
if [[ -z ${match} ]]; then
|
||||
echo ""
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user