#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

set -x

pushd bal-develop
  BAL_DEV_SHA=$(git rev-parse HEAD)
popd

rsync -a diego-release updated-diego-release

pushd updated-diego-release/src/code.cloudfoundry.org/buildpacklifecycle
  git checkout "$BAL_DEV_SHA"
  git add .
popd

git commit -m 'Update buildpacklifecycle'

#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

set -x

pushd bal-develop
  BAL_DEV_SHA=$(git rev-parse HEAD)
popd

rsync -a diego-release/ updated-diego-release

pushd updated-diego-release
  pushd src/code.cloudfoundry.org/buildpackapplifecycle
    git checkout "$BAL_DEV_SHA"
    git add .
  popd

  git commit -m 'Update buildpacklifecycle'
popd

Copy directory contents, not directory
Copy directory contents, not directory

Signed-off-by: Keaty Gross <ba27100af1ae477f2abedd28f15b1dd208b1f48a@pivotal.io>
