Skip to content

Commit f74b9d7

Browse files
Apply suggestions from code review
Co-authored-by: George Yermulnik (Georgii Iermulnik) <[email protected]>
1 parent 0dd21f0 commit f74b9d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/terraform_providers_lock.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ Check migration instructions at https://github.com/antonbabenko/pre-commit-terra
158158
"$tf_path" providers lock "${args[@]}"
159159

160160
exit_code=$?
161-
if [[ $exit_code != 0 ]]; then
161+
if [[ $exit_code -ne 0 ]]; then
162162
common::colorify "red" "$dir_path run failed. Detailed error above.
163-
Most common issue is that you didn't run requiring 'terraform init' before running this hook. It can be run by 'terraform_validate' hook - https://github.com/antonbabenko/pre-commit-terraform#terraform_validate
163+
Most common issue is that required 'terraform init' command was likely not run before running this hook. It might be run for you automatically by 'terraform_validate' hook - see https://github.com/antonbabenko/pre-commit-terraform#terraform_validate for more details
164164
"
165165
fi
166166

0 commit comments

Comments
 (0)