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
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -126,19 +126,19 @@ function per_dir_hook_unique_part {
126
126
case"$key"in
127
127
--mode)
128
128
if [ "$mode" ];then
129
-
common::colorify "yellow"'Invalid hook config. Make sure that you specify not more than one "--mode" flag'
129
+
common::colorify "yellow"'Invalid hook config. Make sure that you specify not more than one "--mode" flag.'
130
130
exit 1
131
131
fi
132
132
mode=$value
133
133
134
-
case$modein
134
+
case"$mode"in
135
135
check-lockfile-is-cross-platform) ;;
136
136
regenerate-lockfile-if-some-platform-missed) ;;
137
137
always-regenerate-lockfile) ;;
138
138
139
139
only-check-is-current-lockfile-cross-platform)
140
-
common::colorify "yellow""DEPRECATION NOTICE: Flag '--mode=only-check-is-current-lockfile-cross-platform' was renamed
141
-
to '--mode=regenerate-lockfile-if-some-platform-missed' to better reflect its behavior. Please update your configuration.
140
+
common::colorify "yellow""DEPRECATION NOTICE: Flag '--mode=only-check-is-current-lockfile-cross-platform' was renamed to '--mode=regenerate-lockfile-if-some-platform-missed' to better reflect its behavior.
@@ -201,7 +201,7 @@ All required platforms: ${platforms_names[*]}
201
201
exit_code=$?
202
202
if [[ $exit_code-ne 0 ]];then
203
203
common::colorify "red""$dir_path run failed. Detailed error above.
204
-
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
204
+
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