From 297cc757879f25bed6d3adf3b6254cf0d37b17c2 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Thu, 28 Apr 2022 10:06:32 +0300 Subject: [PATCH] fix: Fixed `tfupdate` to work in all cases, not only `pre-commit run --all` (#375) --- hooks/tfupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/tfupdate.sh b/hooks/tfupdate.sh index 0c056b2..d7c0808 100755 --- a/hooks/tfupdate.sh +++ b/hooks/tfupdate.sh @@ -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=$?