Skip to content

Commit

Permalink
Download CF CLI for CATS if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
johha committed Apr 4, 2024
1 parent d533685 commit db9978c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run-cats/task
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ build_dir=${PWD}

if [[ -d "${build_dir}/cf-cli" ]]; then
echo "Setting PATH so that input cf-cli is found by CATs..."
PATH="${build_dir}/cf-cli:${PATH}"
export PATH

version=$(cat "${build_dir}/cf-cli/version")
curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${version:1}&source=github-rel" | tar -zx

mv "${build_dir}/cf8" /usr/local/bin/cf
echo "Using provided cf CLI version"
cf -v
fi

export CONFIG
Expand Down

0 comments on commit db9978c

Please sign in to comment.