Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
don't be so greedy
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal-ben-chacko authored and kcboyle committed May 24, 2019
1 parent bdfae5a commit 8993d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgrade-ops-manager/gcp/tasks/create-cliaas-config/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cat > cliaas-config/gcpcreds.json <<EOF
${GCP_SERVICE_ACCOUNT_KEY}
EOF

DISK_IMAGE_PATH=$(grep ${PIVNET_IMAGE_REGION} pivnet-opsmgr/*GCP.yml | awk '{split($0, a); print a[2]}')
DISK_IMAGE_PATH=$(grep -m1 ${PIVNET_IMAGE_REGION} pivnet-opsmgr/*GCP.yml | awk '{split($0, a); print a[2]}')
if [ -z "DISK_IMAGE_PATH" ]; then
echo Could not find disk image for region \"PIVNET_IMAGE_REGION\". Available choices are:
cat pivnet-opsmgr/*GCP.yml | cut -f1 -d':'
Expand Down

0 comments on commit 8993d75

Please sign in to comment.