Skip to content

Commit ef85c3e

Browse files
committed
Fix inverted logic (fix)
1 parent f2254d3 commit ef85c3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/terraform-validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function main() {
1414

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

0 commit comments

Comments
 (0)