Skip to content

Commit

Permalink
terraform executor edge-case
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson committed Dec 4, 2024
1 parent a954391 commit d9a58ba
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/cf-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ set -e
if command -v cf /dev/null 2>&1; then
echo The command cf is available
else
apt-get update
apt-get install wget gnupg2 apt-transport-https jq

if [[ -f /bin/terraform ]]; then
echo "This is our Terraform executor"
apk update
apk install curl jq
else
apt-get update
apt-get install curl wget gnupg2 apt-transport-https jq
fi
NEXUS_ARCHIVE="cf7-cli_7.7.13_linux_x86-64.tgz"
NEXUS_URL="https://tdp-nexus.dev.raftlabs.tech/repository/tdp-bin/cloudfoundry-cli/$NEXUS_ARCHIVE"
curl $NEXUS_URL -o $NEXUS_ARCHIVE # prefers anonymous, use of -u failed.
Expand Down

0 comments on commit d9a58ba

Please sign in to comment.