Commit 96f302d7 authored by Jeff Grafton's avatar Jeff Grafton

Quote string to preserve newlines in output

parent fdc433a9
...@@ -42,7 +42,7 @@ function gcloud-compute-list() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment