fix: Fixed tfupdate to work in all cases, not only pre-commit run --all (#375)

This commit is contained in:
Maksym Vlasov 2022-04-28 10:06:32 +03:00 committed by GitHub
commit 297cc75787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ function per_dir_hook_unique_part {
# pass the arguments to hook
# shellcheck disable=SC2068 # hook fails when quoting is used ("$arg[@]")
tfupdate ${args[@]} "${dir_path}"
tfupdate ${args[@]} .
# return exit code to common::per_dir_hook
local exit_code=$?