3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-16 19:27:39 +00:00

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