anchor.diff:  #!/bin/bash -eu
   
   export PATH="/var/vcap/packages/cf-cli-6-linux/bin:$PATH"
  -export CF_HOME=/var/vcap/data/nfsbrokerpush/
  +export CF_HOME=/var/vcap/data/nfsbrokerpush_$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1)/
   export CF_DIAL_TIMEOUT=<%= p('nfsbrokerpush.cf.dial_timeout') %>
   
   SCHEME=https
  
positive.code: <% if p('nfsbrokerpush.register_broker') %>
    register_service
  <% end %>
  print_deployment_status
  
negative.code: PASSWORD="<%= p('nfsbrokerpush.password') %>"
  APP_URL=$SCHEME://$APP_NAME.$DOMAIN
  
  
  ERROR_EXIT_CODE=<%= p('nfsbrokerpush.error_on_misconfiguration') ? 1 : 0 %>
  DEPLOYMENT_STATUS=0
  
  function authenticate_and_target() {
    cf logout
    mkdir -p $CF_HOME
    cf api $API_ENDPOINT <% if p('nfsbrokerpush.skip_cert_verify') %>--skip-ssl-validation<% end %>
    <% if_p('nfsbrokerpush.cf.client_id', 'nfsbrokerpush.cf.client_secret') do |client_id, client_secret| %>
      cf auth "<%= client_id %>" "<%= client_secret %>" --client-credentials
  