File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 36
36
for f in ${folders//,/ }
37
37
do
38
38
f=$(echo $f | xargs echo -n)
39
- (echo "===> Terraform fmt checking in" $f && terrafmt diff $f --check) || error=true
39
+ (echo "===> Terrafmt diff checking in" $f && terrafmt diff $f --check) || error=true
40
40
if ${error}; then
41
- echo "${error}"
42
- echo "Some Terraform codes has not been formated, and please running terraform fmt --recursive command before pushing"
41
+ echo -e "\033[1m[ERROR]\033[0m: Some quickstarts codes has not been formated, and please running terraform fmt --recursive command before pushing."
43
42
exit 1
44
43
fi
45
44
done
67
66
wget -q https://releases.hashicorp.com/terraform/1.6.0/terraform_1.6.0_linux_amd64.zip
68
67
unzip terraform_1.6.0_linux_amd64.zip -d /usr/local/bin/
69
68
fi
70
- sh scripts/terraform-validate.sh
69
+ sh scripts/terraform-validate.sh CHANGED_FOLDERS=${CHANGED_FOLDERS}
You can’t perform that action at this time.
0 commit comments