mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +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
|
||||
echo "Attempt ${attempt} to list ${resource} in GCE"
|
||||
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
||||
echo ${result}
|
||||
echo "${result}"
|
||||
return
|
||||
fi
|
||||
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user