Skip to content

Commit

Permalink
Update scripts to detect if terraform is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybatt committed Jun 1, 2024
1 parent 4e9214e commit d32376a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Make sure Terraform is installed
(which terraform >> /dev/null) || echo "Terraform must be installed" && exit 1
(which terraform >> /dev/null) || (echo "Terraform must be installed" && exit 1)

# Make sure we have a credentials file
[ ! -f credentials ] && echo "Missing credentials file!" && exit 1
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Make sure Terraform is installed
(which terraform >> /dev/null) || echo "Terraform must be installed" && exit 1
(which terraform >> /dev/null) || (echo "Terraform must be installed" && exit 1)

# Make sure we have a credentials file
[ ! -f credentials ] && echo "Missing credentials file!" && exit 1
Expand Down

0 comments on commit d32376a

Please sign in to comment.