File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -49,20 +49,20 @@ function gcloud-list() {
49
49
local attempt=1
50
50
local result=" "
51
51
while true ; do
52
- if result=$( gcloud ${group} ${resource} list --project=${PROJECT} ${filter: +--filter=" $filter " } ${@: 4} ) ; then
53
- if [[ ! -z " ${GREP_REGEX} " ]]; then
52
+ if result=$( gcloud " ${group} " " ${resource} " list --project=" ${PROJECT} " " ${filter: +--filter=" $filter " } " " ${@: 4} " ) ; then
53
+ if [[ -n " ${GREP_REGEX:- } " ]]; then
54
54
result=$( echo " ${result} " | grep " ${GREP_REGEX} " || true)
55
55
fi
56
56
echo " ${result} "
57
57
return
58
58
fi
59
59
echo -e " Attempt ${attempt} failed to list ${resource} . Retrying." >&2
60
- attempt=$(( $ attempt+ 1 ))
60
+ attempt=$(( attempt + 1 ))
61
61
if [[ ${attempt} -gt 5 ]]; then
62
62
echo -e " List ${resource} failed!" >&2
63
63
exit 2
64
64
fi
65
- sleep $(( 5 * ${ attempt} ))
65
+ sleep $(( 5 * attempt))
66
66
done
67
67
}
68
68
Original file line number Diff line number Diff line change 11
11
./cluster/gce/gci/flexvolume_node_setup.sh
12
12
./cluster/gce/gci/health-monitor.sh
13
13
./cluster/gce/gci/master-helper.sh
14
- ./cluster/gce/list-resources.sh
15
14
./cluster/gce/upgrade-aliases.sh
16
15
./cluster/gce/upgrade.sh
17
16
./cluster/gce/util.sh
You can’t perform that action at this time.
0 commit comments