Skip to content

Commit 8b75f03

Browse files
ditch variables in all caps, ditch echo -e
1 parent 03d2cf4 commit 8b75f03

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/actions/authenticateOrg/action.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ runs:
2121
# Authenticate org
2222
- name: Authenticate org
2323
run: |
24-
RED='\033[0;31m'
25-
YELLOW='\033[0;33m'
26-
GREEN='\033[0;32m'
27-
BOLD='\033[1m'
28-
RESET='\033[0m'
24+
printf -v red '\033[0;31m'
25+
printf -v yellow '\033[0;33m'
26+
printf -v green '\033[0;32m'
27+
printf -v bold '\033[1m'
28+
printf -v reset '\033[0m'
2929
30-
echo -e "${YELLOW}${BOLD}------------------------------------------------------------------------------------------${RESET}"
31-
echo -e "${YELLOW}${BOLD}Authenticate org 🔒${RESET}"
32-
echo -e "${YELLOW}${BOLD}------------------------------------------------------------------------------------------${RESET}"
30+
echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
31+
echo "${yellow}${bold}Authenticate org 🔒${reset}"
32+
echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
3333
3434
echo ${{ inputs.auth-URL }} > ./SFDX_URL.txt
3535
@@ -55,10 +55,10 @@ runs:
5555
rm -f ./SFDX_URL.txt
5656
rm -f ./loginResult.json
5757
else
58-
echo -e "${GREEN}${BOLD}Authenticate org successfull.${RESET}"
58+
echo "${green}${bold}Authenticate org successfull.${reset}"
5959
fi
6060
61-
echo -e "${YELLOW}${BOLD}------------------------------------------------------------------------------------------${RESET}"
61+
echo "${yellow}${bold}------------------------------------------------------------------------------------------${reset}"
6262
6363
rm -f ./SFDX_URL.txt
6464
rm -f ./loginResult.json

0 commit comments

Comments
 (0)