From 310cf281de64ddd33fae339d41853ebdb7373dcb Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Mon, 19 Feb 2024 15:31:06 +0200 Subject: [PATCH] Apply suggestions from code review --- hooks/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/_common.sh b/hooks/_common.sh index 3b4bd79d0..20555bca9 100644 --- a/hooks/_common.sh +++ b/hooks/_common.sh @@ -349,7 +349,7 @@ function common::per_dir_hook { local pids=() # shellcheck disable=SC2207 - local -a dir_paths_unique=("$(printf '%s\n' "${dir_paths[@]}" | sort -u)") + local -a dir_paths_unique=( $(printf '%s\n' "${dir_paths[@]}" | sort -u) ) local length=${#dir_paths_unique[@]} local last_index=$((${#dir_paths_unique[@]} - 1))