Skip to content

Commit b0b24d1

Browse files
committed
fix: remove forced space by color
1 parent 1fc953d commit b0b24d1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

deploy.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ function pollForSpecificDeployment() {
7575
PENDING_COUNT=$(echo "$RESPONSE" | jq -r '.deploymentInfo.deploymentOverview.Pending')
7676
STATUS=$(echo "$RESPONSE" | jq -r '.deploymentInfo.status')
7777

78-
echo -e "$ORANGE Deployment in progress. Sleeping 15 seconds. (Try $((++deadlockCounter)))";
79-
echo -e "Instance Overview: $RED Failed ($FAILED_COUNT), $BLUE In-Progress ($IN_PROGRESS_COUNT), $NO_COLOR Skipped ($SKIPPED_COUNT), $BLUE Pending ($PENDING_COUNT), $GREEN Succeeded ($SUCCESS_COUNT)"
78+
echo -e "${ORANGE}Deployment in progress. Sleeping 15 seconds. (Try $((++deadlockCounter)))";
79+
echo -e "Instance Overview: ${RED}Failed ($FAILED_COUNT), ${BLUE}In-Progress ($IN_PROGRESS_COUNT), ${NO_COLOR}Skipped ($SKIPPED_COUNT), ${BLUE}Pending ($PENDING_COUNT), ${GREEN}Succeeded ($SUCCESS_COUNT)"
8080
echo -e "Deployment Status: $STATUS"
8181

8282
if [ "$FAILED_COUNT" -gt 0 ]; then
83-
echo -e "$RED Failed instance detected (Failed count over zero)."
83+
echo -e "${RED}Failed instance detected (Failed count over zero)."
8484
exit 1;
8585
fi
8686

8787
if [ "$STATUS" = "Failed" ]; then
88-
echo -e "$RED Failed deployment detected (Failed status)."
88+
echo -e "${RED}Failed deployment detected (Failed status)."
8989
exit 1;
9090
fi
9191

@@ -94,7 +94,7 @@ function pollForSpecificDeployment() {
9494
fi
9595

9696
if [ "$deadlockCounter" -gt "$INPUT_MAX_POLLING_ITERATIONS" ]; then
97-
echo -e "$RED Max polling iterations reached (max_polling_iterations)."
97+
echo -e "${RED}Max polling iterations reached (max_polling_iterations)."
9898
exit 1;
9999
fi
100100
sleep 15s;
@@ -104,10 +104,10 @@ function pollForSpecificDeployment() {
104104
function pollForActiveDeployments() {
105105
deadlockCounter=0;
106106
while [ "$(getActiveDeployments)" != "[]" ]; do
107-
echo -e "$ORANGE Deployment in progress. Sleeping 15 seconds. (Try $((++deadlockCounter)))";
107+
echo -e "${ORANGE}Deployment in progress. Sleeping 15 seconds. (Try $((++deadlockCounter)))";
108108

109109
if [ "$deadlockCounter" -gt "$INPUT_MAX_POLLING_ITERATIONS" ]; then
110-
echo -e "$RED Max polling iterations reached (max_polling_iterations)."
110+
echo -e "${RED}Max polling iterations reached (max_polling_iterations)."
111111
exit 1;
112112
fi
113113
sleep 15s;
@@ -132,16 +132,16 @@ function registerRevision() {
132132
}
133133

134134
if $INPUT_CODEDEPLOY_REGISTER_ONLY; then
135-
echo -e "$BLUE Registering deployment to $NO_COLOR$INPUT_CODEDEPLOY_GROUP.";
135+
echo -e "${BLUE}Registering deployment to $NO_COLOR$INPUT_CODEDEPLOY_GROUP.";
136136
registerRevision
137-
echo -e "$BLUE Registered deployment to $NO_COLOR$INPUT_CODEDEPLOY_GROUP!";
137+
echo -e "${BLUE}Registered deployment to $NO_COLOR$INPUT_CODEDEPLOY_GROUP!";
138138
else
139-
echo -e "$BLUE Deploying to $NO_COLOR$INPUT_CODEDEPLOY_GROUP.";
139+
echo -e "${BLUE}Deploying to $NO_COLOR$INPUT_CODEDEPLOY_GROUP.";
140140
DEPLOYMENT_ID=$(deployRevision)
141141

142142
sleep 10;
143143
pollForSpecificDeployment "$DEPLOYMENT_ID"
144-
echo -e "$GREEN Deployed to $NO_COLOR$INPUT_CODEDEPLOY_GROUP!";
144+
echo -e "${GREEN}Deployed to $NO_COLOR$INPUT_CODEDEPLOY_GROUP!";
145145
fi
146146

147147
exit 0;

0 commit comments

Comments
 (0)