Commit 1b8084fc authored by Mike Danese's avatar Mike Danese

descriminate more when parsing kube-env :(

I HATE BASH
parent 69eaea2f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment