From 17377369604684a87e7e6cd38bdf7ba637e813fd Mon Sep 17 00:00:00 2001 From: Mike Metral Date: Wed, 11 May 2016 13:07:45 -0700 Subject: [PATCH] fix filepath for cert_data --- hack/test-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index bdc57587a59..415a820593c 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -305,7 +305,7 @@ runTests() { kubectl config set-cluster test-cluster --server="https://does-not-work" # Get the api cert and add a comment to avoid flag parsing problems - cert_data=$(echo "#Comment" && cat "${TMPDIR:-/tmp/}apiserver.crt") + cert_data=$(echo "#Comment" && cat "${TMPDIR:-/tmp}/apiserver.crt") kubectl config set clusters.test-cluster.certificate-authority-data "$cert_data" --set-raw-bytes r_writen=$(kubectl config view --raw -o jsonpath='{.clusters[?(@.name == "test-cluster")].cluster.certificate-authority-data}')