From: Andrew Bays Date: Fri, 8 May 2020 10:59:16 +0000 (-0400) Subject: Fix kustomize SiteConfig plugin X-Git-Tag: akraino_r3 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=7ff087852cb2176b72b6a538529cbbc34aa3d95c;p=kni%2Finstaller.git Fix kustomize SiteConfig plugin Change-Id: I77a998ae710bfb0d343ec66881f60b4b4a9c8965 --- diff --git a/plugins/kustomize/plugin/kni.akraino.org/v1alpha1/siteconfig/SiteConfig b/plugins/kustomize/plugin/kni.akraino.org/v1alpha1/siteconfig/SiteConfig index 96b9cb8..2aaf11d 100755 --- a/plugins/kustomize/plugin/kni.akraino.org/v1alpha1/siteconfig/SiteConfig +++ b/plugins/kustomize/plugin/kni.akraino.org/v1alpha1/siteconfig/SiteConfig @@ -18,11 +18,11 @@ shift PULL_SECRET=$(cat ${HOME}/.kni/pull-secret.json) SSH_PUB_KEY=$(cat ${HOME}/.kni/id_rsa.pub) -if [ -f `$HOME/.kni/dockerconfig.json` ]; then +if [[ -f "$HOME/.kni/dockerconfig.json" ]]; then DOCKERCONFIGJSON=$(cat ${HOME}/.kni/dockerconfig.json) fi -if [ -f `$HOME/.kni/kubeconfighub.json` ]; then +if [[ -f "$HOME/.kni/kubeconfighub.json" ]]; then KUBECONFIGHUB=$(cat ${HOME}/.kni/kubeconfighub.json) fi