Updated get-changed-paths.sh
This commit is contained in:
parent
6093777a38
commit
967c8a0609
@ -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…
x
Reference in New Issue
Block a user