mirror of https://github.com/k3s-io/k3s
Fix list-resources grep
parent
48fa998f58
commit
650d99fbd9
|
@ -47,7 +47,10 @@ function gcloud-compute-list() {
|
|||
local attempt=1
|
||||
local result=""
|
||||
while true; do
|
||||
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
||||
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2}); then
|
||||
if [[ ! -z "${GREP_REGEX}" ]]; then
|
||||
result=$(echo "${result}" | grep "${GREP_REGEX}")
|
||||
fi
|
||||
echo "${result}"
|
||||
return
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue