mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Quote string to preserve newlines in output
This commit is contained in:
parent
fdc433a9ee
commit
96f302d771
@ -42,7 +42,7 @@ function gcloud-compute-list() {
|
|||||||
while true; do
|
while true; do
|
||||||
echo "Attempt ${attempt} to list ${resource} in GCE"
|
echo "Attempt ${attempt} to list ${resource} in GCE"
|
||||||
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
||||||
echo ${result}
|
echo "${result}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user