File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: 2
33jobs :
44 build :
55 docker :
6- - image : hashicorp/terraform:0.11.2
6+ - image : hashicorp/terraform:0.11.3
77 entrypoint : /bin/sh
88 steps :
99 - checkout
3737 #head --help
3838 #tail --help
3939 sed --help
40- which terraform
41- # head works but with non 0 exit ??
42- #FAIL terraform version | sed -n '1p;1q'
43- #terraform version | sed -n '1p'
44- terraform version | awk 'FNR <= 1'
45- #FAIL terraform version | awk 'NR==1'
46- #FAIL terraform version | read X
47- #FAIL echo "Got: $X"
48- # awk and cut work
49- echo "test v111" | awk -Fv -e '{ print $2 }'
50- echo "test v111" | cut -dv -f2
51-
52- # FIX: line failing with code 141
40+
5341 tf_ver=$(terraform version | awk 'FNR <= 1' | cut -dv -f2)
5442 echo -e "\tConfig for terraform version: ${tf_ver}"
5543 if [ -f '.tflint.hcl' ]; then
You can’t perform that action at this time.
0 commit comments