From 163f1de5edcc0980ad474250ad94d02760308cb0 Mon Sep 17 00:00:00 2001 From: Shyam Jeedigunta Date: Sun, 4 Jun 2017 20:07:36 +0200 Subject: [PATCH] Avoid double printing output of gcloud commands in kubemark --- test/kubemark/gce/util.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/test/kubemark/gce/util.sh b/test/kubemark/gce/util.sh index 5bb57bbed04..6fd3372567c 100644 --- a/test/kubemark/gce/util.sh +++ b/test/kubemark/gce/util.sh @@ -24,7 +24,6 @@ function run-gcloud-compute-with-retries { # We don't use 'local' to declare gcloud_result as then ret_val always gets value 0. # We use tee to output to &5 (redirected to stdout) while also storing it in the variable. gcloud_result=$(gcloud compute "$@" 2>&1 | tee >(cat - >&5)) || local ret_val="$?" - echo "${gcloud_result}" if [[ "${ret_val:-0}" -ne "0" ]]; then if [[ $(echo "${gcloud_result}" | grep -c "already exists") -gt 0 ]]; then if [[ "${attempt}" == 1 ]]; then