---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: cfcli/cli-package

inputs:
- name: cf-cli-binaries

outputs:
- name: linux-cf-binary

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

    pushd cf-cli-binaries
      tar xvf cf-cli-binaries.tgz
      rm cf-cli-binaries.tgz
    popd

    mv cf-cli-binaries/cf7-cli_linux_x86-64 linux-cf-binary/cf
    chmod +x linux-cf-binary/cf

---
platform: linux

image_resource:
  type: docker-image
  source:
    repository: cfcli/cli-package

inputs:
- name: cf-cli-binaries

outputs:
- name: linux-cf-binary

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

    pushd cf-cli-binaries
      tar xvf cf-cli-binaries.tgz
      rm cf-cli-binaries.tgz
    popd

    mv cf-cli-binaries/cf-cli_linux_x86-64 linux-cf-binary/cf
    chmod +x linux-cf-binary/cf

Revert "🐞 CI: use correct executable path"
Revert "🐞 CI: use correct executable path"

This reverts commit 8e0573cbc7509baeaea3f6501f7ab4ff3f4a7f9e.

This commit would most likely [break V6's
build](https://cloudfoundry.slack.com/archives/CCRLX88DD/p1582576216014800)

[#171443508]
