File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828 (terraform -chdir=quickstarts fmt -check -recursive -list=false) || error=true
2929 terraform -chdir=quickstarts fmt -diff -recursive
3030 if ${error}; then
31- echo -e "\031[1m [ERROR]\031 [0m: Some quickstarts codes has not been formatted, and please running terraform fmt --recursive command before pushing."
32- exit 1
31+ echo -e "\033[31m [ERROR]\033 [0m: Some quickstarts codes has not been formatted, and please running terraform fmt --recursive command before pushing."
32+ exit 1
3333 fi
3434
3535 pre-pr-check :
Original file line number Diff line number Diff line change 99 terraform -chdir=$f init -upgrade
1010 terraform -chdir=$f validate
1111 if [[ $? -ne 0 ]]; then
12- echo -e " \031[1m [ERROR]\031 [0m: Some quickstarts codes contain errors, and please running terraform validate command before pushing."
12+ echo -e " \033[31m [ERROR]\033 [0m: Some quickstarts codes contain errors, and please running terraform validate command before pushing."
1313 exit 1
1414 fi
1515done
You can’t perform that action at this time.
0 commit comments