Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov authored Feb 19, 2024
1 parent a272c33 commit 310cf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 310cf28

Please sign in to comment.