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

inputs:
- name: cross-compiled
- name: osx-compiled

outputs:
- name: compiled

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

    cwd=$PWD

    mkdir combined

    pushd cross-compiled
      tar -xzf *.tar
      rm *.tar
      mv * $cwd/combined
    popd

    pushd osx-compiled
      tar -xzf *.tar
      rm *.tar
      mv * $cwd/combined
    popd

    tar -cvzf $cwd/compiled/cf-cli-binaries.tgz -C combined .

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

inputs:
- name: cross-compiled
- name: osx-compiled

outputs:
- name: compiled

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

    cwd=$PWD

    mkdir combined

    pushd cross-compiled
      tar -xzf *.tgz
      rm *.tgz
      mv * $cwd/compiled
    popd

    pushd osx-compiled
      tar -xzf *.tgz
      rm *.tgz
      mv * $cwd/compiled
    popd

    tar -cvzf $cwd/compiled/cf-cli-binaries.tgz -C compiled .

Fix tgz & output directory
Fix tgz & output directory

[#115203011]

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