mirror of https://github.com/k3s-io/k3s
Fix unbound variable after #7146
parent
93207bfd1c
commit
0e3e502d52
|
@ -56,6 +56,7 @@ function verify-prereqs {
|
||||||
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
|
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
|
||||||
gcloud_prompt="-q"
|
gcloud_prompt="-q"
|
||||||
fi
|
fi
|
||||||
|
local sudo_prefix=""
|
||||||
if [ ! -w $(dirname `which gcloud`) ]; then
|
if [ ! -w $(dirname `which gcloud`) ]; then
|
||||||
sudo_prefix="sudo"
|
sudo_prefix="sudo"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -94,6 +94,7 @@ function verify-prereqs() {
|
||||||
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
|
if [[ "${KUBE_PROMPT_FOR_UPDATE}" != "y" ]]; then
|
||||||
gcloud_prompt="-q"
|
gcloud_prompt="-q"
|
||||||
fi
|
fi
|
||||||
|
local sudo_prefix=""
|
||||||
if [ ! -w $(dirname `which gcloud`) ]; then
|
if [ ! -w $(dirname `which gcloud`) ]; then
|
||||||
sudo_prefix="sudo"
|
sudo_prefix="sudo"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue