Skip to content

Commit

Permalink
Fix inverted logic (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Nov 17, 2020
1 parent f2254d3 commit ef85c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform-validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function main() {

for dir in $(echo "$@" | xargs -n1 dirname | sort -u | uniq); do
local -r inline_provider_match="$(grep 'provider "azurerm" {' "$dir/main.tf")"
if [[ -z "$inline_provider_match" ]]; then
if [[ -n "$inline_provider_match" ]]; then
continue
fi

Expand Down

0 comments on commit ef85c3e

Please sign in to comment.