File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ main() {
6363 # Check if the user has the proper version of aws cli installed
6464 local aws_version_output
6565 aws_version_output=$( aws --version) ;
66- if [[ ! " $aws_version_output " =~ aws-cli/1 .* ]]; then
66+ if [[ ! $aws_version_output =~ aws-cli/2 .* ]]; then
6767 local msg=" Found version of aws cli: $aws_version_output "
6868 msg+=$' \n However, we required aws cli of version 2.\n '
6969 msg+=$' Please follow these docs to install one: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html\n '
@@ -160,7 +160,7 @@ get_terraform() {
160160 # Check if the user already has the proper version of terraform installed
161161 local tf_version_output
162162 if tf_version_output=$( terraform --version) ; then
163- if [[ " $tf_version_output " =~ Terraform\ v${tf_version} .* ]]; then
163+ if [[ $tf_version_output =~ Terraform\ v${tf_version} .* ]]; then
164164 log_info " Found already installed Terraform v$tf_version ."
165165 echo ' terraform'
166166 return 0
You can’t perform that action at this time.
0 commit comments