Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e12711 + eeec939 commit 9b12e37Copy full SHA for 9b12e37
1 file changed
cluster/gce/list-resources.sh
@@ -49,7 +49,7 @@ function gcloud-compute-list() {
49
while true; do
50
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2}); then
51
if [[ ! -z "${GREP_REGEX}" ]]; then
52
- result=$(echo "${result}" | grep "${GREP_REGEX}")
+ result=$(echo "${result}" | grep "${GREP_REGEX}" || true)
53
fi
54
echo "${result}"
55
return
0 commit comments