3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2025-01-17 19:17:45 +00:00

Updated get-changed-paths.sh

This commit is contained in:
Tonye Jack 2022-11-23 19:00:52 -07:00
parent 6093777a38
commit 967c8a0609

View file

@ -25,12 +25,10 @@ if [[ -n $INPUT_DIFF_RELATIVE ]]; then
fi
function get_dirname_max_depth() {
local depth=0
local dir=""
local dirs=()
while IFS='' read -r line; do
dir="$line"
local dir="$line"
local dirs=()
IFS='/' read -ra dirs <<<"$dir"
local max_depth=${#dirs[@]}