You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hooks/terraform_providers_lock.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -158,9 +158,9 @@ Check migration instructions at https://github.com/antonbabenko/pre-commit-terra
158
158
"$tf_path" providers lock "${args[@]}"
159
159
160
160
exit_code=$?
161
-
if [[ $exit_code!= 0 ]];then
161
+
if [[ $exit_code-ne 0 ]];then
162
162
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
0 commit comments