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:
parent
63f38f9f41
commit
65688ba5c8
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue