Skip to content

Commit d998eb7

Browse files
committed
Change terraform version
1 parent 440e1c5 commit d998eb7

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.circleci/config.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
jobs:
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
@@ -37,19 +37,7 @@ jobs:
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

0 commit comments

Comments
 (0)