#!/bin/bash -l
set -o errexit
set -o pipefail

#PACK_VERSION="$(cat pack/version)"
#export PACK_VERSION

if [[ -d "release-artifacts" ]]; then
    export BP_PACKAGED_PATH="$(realpath "$(find release-artifacts -name "*.tgz")")"
    echo "${BP_PACKAGED_PATH}"
fi

PACK_PATH="$(realpath "$(find pack -name "*linux.tgz")")"
mkdir -p buildpack/.bin
tar xvf ${PACK_PATH} -C buildpack/.bin

cd buildpack

export GOBIN=$PWD/.bin
export PATH=$GOBIN:$PATH

echo "Start Docker"
../buildpacks-ci/scripts/start-docker > /dev/null

./scripts/integration.sh

#!/bin/bash -l
set -o errexit
set -o pipefail

#PACK_VERSION="$(cat pack/version)"
#export PACK_VERSION

if [[ -d "release-artifacts" ]]; then
    BP_PACKAGED_PATH="$(realpath "$(find release-artifacts -name "*.tgz")")"
    export BP_PACKAGED_PATH
    echo "${BP_PACKAGED_PATH}"
fi

PACK_PATH="$(realpath "$(find pack -name "*linux.tgz")")"
mkdir -p buildpack/.bin
tar xvf "${PACK_PATH}" -C buildpack/.bin

cd buildpack

export GOBIN=$PWD/.bin
export PATH=$GOBIN:$PATH

echo "Start Docker"
../buildpacks-ci/scripts/start-docker > /dev/null

./scripts/integration.sh

Fix shellcheck errors for packaged-bp integration
Fix shellcheck errors for packaged-bp integration

Co-authored-by: Chhavi Kankaria <a45f933d80ef78816bcf302f872972e3887e5115@pivotal.io>
