mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 09:17:46 +00:00
Updated get-changed-paths.sh
This commit is contained in:
parent
6093777a38
commit
967c8a0609
1 changed files with 2 additions and 4 deletions
|
@ -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[@]}
|
||||
|
|
Loading…
Reference in a new issue