File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
(terraform -chdir=quickstarts fmt -check -recursive -list=false) || error=true
29
29
terraform -chdir=quickstarts fmt -diff -recursive
30
30
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
33
33
fi
34
34
35
35
pre-pr-check :
Original file line number Diff line number Diff line change 9
9
terraform -chdir=$f init -upgrade
10
10
terraform -chdir=$f validate
11
11
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."
13
13
exit 1
14
14
fi
15
15
done
You can’t perform that action at this time.
0 commit comments