From d9a58ba9443251c50e0b2a48fb45f1d21e8e1fe9 Mon Sep 17 00:00:00 2001 From: andrew-jameson Date: Wed, 4 Dec 2024 15:13:08 -0500 Subject: [PATCH] terraform executor edge-case --- scripts/cf-check.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/cf-check.sh b/scripts/cf-check.sh index 8e0c5872b..582b11d6d 100755 --- a/scripts/cf-check.sh +++ b/scripts/cf-check.sh @@ -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.