Skip to content

Commit 5d092d3

Browse files
committed
Fix quotes and version (debug leftovers) as per vv
1 parent 7515976 commit 5d092d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/reds-deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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+=$'\nHowever, 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

0 commit comments

Comments
 (0)