Skip to content

Commit fb0f7df

Browse files
committed
refactor: use RESET_TEXT vs NO_COLOR
1 parent b0b24d1 commit fb0f7df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

deploy.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -l
22
set -e
33

4-
NO_COLOR='\033[0m'
4+
RESET_TEXT='\033[0m'
55
RED='\033[0;31m'
66
GREEN='\033[0;32m'
77
ORANGE='\033[0;33m'
@@ -76,7 +76,7 @@ function pollForSpecificDeployment() {
7676
STATUS=$(echo "$RESPONSE" | jq -r '.deploymentInfo.status')
7777

7878
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)"
79+
echo -e "Instance Overview: ${RED}Failed ($FAILED_COUNT), ${BLUE}In-Progress ($IN_PROGRESS_COUNT), ${RESET_TEXT}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
@@ -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 ${RESET_TEXT}$INPUT_CODEDEPLOY_GROUP.";
136136
registerRevision
137-
echo -e "${BLUE}Registered deployment to $NO_COLOR$INPUT_CODEDEPLOY_GROUP!";
137+
echo -e "${BLUE}Registered deployment to ${RESET_TEXT}$INPUT_CODEDEPLOY_GROUP!";
138138
else
139-
echo -e "${BLUE}Deploying to $NO_COLOR$INPUT_CODEDEPLOY_GROUP.";
139+
echo -e "${BLUE}Deploying to ${RESET_TEXT}$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 ${RESET_TEXT}$INPUT_CODEDEPLOY_GROUP!";
145145
fi
146146

147147
exit 0;

0 commit comments

Comments
 (0)