Skip to content

Commit bf7fdce

Browse files
committed
Remove extraneous newlines in output messages
1 parent 2bba75c commit bf7fdce

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

hooks/terraform_providers_lock.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ function per_dir_hook_unique_part {
138138

139139
only-check-is-current-lockfile-cross-platform)
140140
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.
141-
Please update your configuration.
142-
"
141+
Please update your configuration."
143142
mode="regenerate-lockfile-if-some-platform-missed"
144143
;;
145144
*)
@@ -161,8 +160,7 @@ Please update your configuration.
161160
# TODO: Remove in 2.0
162161
if [ ! "$mode" ]; then
163162
common::colorify "yellow" "DEPRECATION NOTICE: We introduced '--mode' flag for this hook.
164-
Check migration instructions at https://github.com/antonbabenko/pre-commit-terraform#terraform_providers_lock
165-
"
163+
Check migration instructions at https://github.com/antonbabenko/pre-commit-terraform#terraform_providers_lock"
166164
common::terraform_init "$tf_path providers lock" "$dir_path" "$parallelism_disabled" "$tf_path" || {
167165
exit_code=$?
168166
return $exit_code
@@ -176,8 +174,7 @@ Check migration instructions at https://github.com/antonbabenko/pre-commit-terra
176174
fi
177175

178176
common::colorify "red" "$dir_path/.terraform.lock.hcl missing some of required platforms.
179-
All required platforms: ${platforms_names[*]}
180-
"
177+
All required platforms: ${platforms_names[*]}"
181178

182179
exit 1
183180
;;
@@ -187,8 +184,7 @@ All required platforms: ${platforms_names[*]}
187184
fi
188185

189186
common::colorify "yellow" "$dir_path/.terraform.lock.hcl missing some of required platforms.
190-
All required platforms: ${platforms_names[*]}
191-
"
187+
All required platforms: ${platforms_names[*]}"
192188

193189
;;
194190
esac
@@ -201,8 +197,7 @@ All required platforms: ${platforms_names[*]}
201197
exit_code=$?
202198
if [[ $exit_code -ne 0 ]]; then
203199
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.
205-
"
200+
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."
206201
fi
207202

208203
# return exit code to common::per_dir_hook

0 commit comments

Comments
 (0)