From 4f7d28c633f671f80d7b2f03498e6a323423e7ca Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Sat, 10 Feb 2024 01:12:06 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: George L. Yermulnik --- hooks/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/_common.sh b/hooks/_common.sh index 931a1c9b9..17cae2258 100644 --- a/hooks/_common.sh +++ b/hooks/_common.sh @@ -268,7 +268,7 @@ function common::per_dir_hook { local final_exit_code=0 local pids=() - mapfile -t dir_paths_unique < <(echo "${dir_paths[*]}" | tr ' ' '\n' | sort -u) + mapfile -t dir_paths_unique < <(echo "${dir_paths[@]}" | tr ' ' '\n' | sort -u) local length=${#dir_paths_unique[@]} local last_index=$((${#dir_paths_unique[@]} - 1)) # run hook for each path in parallel