mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Fix list-resources grep
This commit is contained in:
parent
48fa998f58
commit
650d99fbd9
@ -47,7 +47,10 @@ function gcloud-compute-list() {
|
|||||||
local attempt=1
|
local attempt=1
|
||||||
local result=""
|
local result=""
|
||||||
while true; do
|
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}"
|
echo "${result}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user