Skip to content

Commit 04d45b0

Browse files
authored
Fix cf-cli compatibility issue (#195)
1 parent 09f0447 commit 04d45b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobs/nfsbrokerpush/templates/deploy.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function authenticate_and_target() {
4949
function create_credhub_security_group() {
5050
cf create-security-group credhub_open /var/vcap/jobs/nfsbrokerpush/credhub.json
5151
cf update-security-group credhub_open /var/vcap/jobs/nfsbrokerpush/credhub.json
52-
if [[ -d "/var/vcap/packages/cf-cli-6-linux" ]]; then
52+
if LANG=en cf version | grep "cf version 6"; then
5353
cf bind-security-group credhub_open $ORG $SPACE
5454
else
5555
cf bind-security-group credhub_open $ORG --space $SPACE

0 commit comments

Comments
 (0)