Add cf-cli version check to create_service_account

This commit is contained in:
Ryan Ahearn
2023-01-27 14:54:29 -05:00
parent ff6ef9f26a
commit 873c9caf21

View File

@@ -18,9 +18,16 @@ Options:
-o <ORG NAME>: configure the organization to act on. Default: $org
Notes:
OrgManager is required for terraform to create <env>-egress spaces
* OrgManager is required for terraform to create <env>-egress spaces
* Requires cf-cli@8
"
cf_version=`cf --version | cut -d " " -f 3`
if [[ $cf_version != 8.* ]]; then
echo "$usage"
exit 1
fi
set -e
set -o pipefail