Unverified Commit ee14c522 authored by John T Skarbek's avatar John T Skarbek
Browse files

Removes the use of `readarray`

Signed-off-by: default avatarJohn T Skarbek <jtslear@gmail.com>
parent eeaa2bb3
......@@ -10,8 +10,11 @@ else
declare -r disk_list='gcloud compute --project $GCP_PROJECT disks list --filter="name~'^postgres-.*-data'" --uri'
declare -a GCP_DISKS
readarray -t GCP_DISKS < <(gcloud compute --project $GCP_PROJECT disks list --filter="name~'^postgres-.*-data'" --uri)
GCP_DISKS=($(awk -F= '{print $1}' <(eval $disk_list)))
gcloud compute --project $GCP_PROJECT disks snapshot "${GCP_DISKS[@]}" &
for disk_name in `az disk list -g $AZ_RESOURCE_GROUP -o tsv --query "[*].name"`; do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment