Update get-changed-paths.sh

This commit is contained in:
Tonye Jack 2022-11-23 19:56:19 -07:00 committed by GitHub
parent 63f38f9f41
commit 65688ba5c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,11 +37,10 @@ function get_dirname_max_depth() {
max_depth="$input_dir_names_max_depth"
fi
local output=${dirs[1]}
local depth="2"
local output="${dirs[0]}"
local depth="1"
while [ "$depth" -le "$max_depth" ]; do
current_dir="${dirs[2]}"
while [ "$depth" -lt "$max_depth" ]; do
output="$output/${dirs[${depth}]}"
depth=$((depth + 1))
done