---
platform: linux

image: docker:///cloudfoundry/cli-ci

params:
  CF_API:
  CF_USERNAME:
  CF_PASSWORD:
  CF_ORGANIZATION:
  CF_SPACE:

inputs:
- name: cli-ci
- name: edge-linux-binary-64

run:
  path: bash
  args:
  - -c
  - |
    set -ex

    tar -zxf edge-linux-binary-64/*.tgz

    LATEST_VERSION=$(cat cli-ci/ci/VERSION)

    ./cf login -a $CF_API -u "$CF_USERNAME" -p "$CF_PASSWORD" -o "$CF_ORGANIZATION" -s "$CF_SPACE"
    CURRENT_VERSIONS=$(./cf env claw | grep AVAILABLE_VERSIONS | awk '{print $2}')

    if [[ $CURRENT_VERSIONS ==*${LATEST_VERSION}* ]]; then
      exit
    fi

    ./cf set-env claw AVAILABLE_VERSIONS "${CURRENT_VERSIONS},${LATEST_VERSION}"
    ./cf restage claw

---
platform: linux

image: docker:///cloudfoundry/cli-ci

params:
  CF_API:
  CF_USERNAME:
  CF_PASSWORD:
  CF_ORGANIZATION:
  CF_SPACE:

inputs:
- name: cli-ci
- name: edge-linux-binary-64

run:
  path: bash
  args:
  - -c
  - |
    set -ex

    tar -zxf edge-linux-binary-64/*.tgz

    LATEST_VERSION=$(cat cli-ci/ci/VERSION)

    ./cf login -a $CF_API -u "$CF_USERNAME" -p "$CF_PASSWORD" -o "$CF_ORGANIZATION" -s "$CF_SPACE"
    CURRENT_VERSIONS=$(./cf env claw | grep AVAILABLE_VERSIONS | awk '{print $2}')

    if [[ $CURRENT_VERSIONS == *${LATEST_VERSION}* ]]; then
      exit
    fi

    ./cf set-env claw AVAILABLE_VERSIONS "${CURRENT_VERSIONS},${LATEST_VERSION}"
    ./cf restage claw

Add space after equals sign
Add space after equals sign

[#130542755]

Signed-off-by: Anand Gaitonde <4f0ff06b2390eeadb0769d298cbdb3dc6df4c73d@pivotal.io>
