From 74c38d459ef6ba8ff2c8bccdf5c66c4de4f7f92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Espa=C3=B1a?= Date: Mon, 18 Apr 2022 16:16:53 -0600 Subject: [PATCH] Fix text output (#4) --- pipe/pipe.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pipe/pipe.sh b/pipe/pipe.sh index 51d7aee..e8221e4 100644 --- a/pipe/pipe.sh +++ b/pipe/pipe.sh @@ -62,7 +62,7 @@ TERRAKUBE_ORGANIZATION_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN" echo "Organization Id: $TERRAKUBE_ORGANIZATION_ID" -info "Searchving Terrakube Workspace:" +info "Searching Terrakube Workspace:" TERRAKUBE_WORKSPACE_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN" -X GET "${TERRAKUBE_ENDPOINT}/api/v1/organization/$TERRAKUBE_ORGANIZATION_ID/workspace?filter[workspace]=name==${TERRAKUBE_WORKSPACE}" | jq -r '.data[0].id') @@ -76,7 +76,9 @@ info "Creating Terrakube Job:" TERRAKUBE_JOB_ID=$(curl -g -H "Authorization: Bearer $TERRAKUBE_TOKEN" -H "Content-Type: application/vnd.api+json" -X POST "${TERRAKUBE_ENDPOINT}/api/v1/organization/$TERRAKUBE_ORGANIZATION_ID/job" --data "$(generate_job_data)" | jq -r '.data.id' ) -info "Job Id: $TERRAKUBE_JOB_ID" +info "Terrakube Job Created..." + +echo "Job Id: $TERRAKUBE_JOB_ID" run echo $TERRAKUBE_JOB_ID