mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-05 09:35:54 +00:00
fixed shellcheck error
This commit is contained in:
parent
bcd97d2870
commit
f08344bfbc
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ fi
|
||||||
function dirname_max_depth() {
|
function dirname_max_depth() {
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
|
|
||||||
local dirs=($(echo "$dir" | tr "/" " "))
|
local dirs=()
|
||||||
|
IFS="/" read -r -a dirs <<< "$dir"
|
||||||
local max_depth=${#dirs[@]}
|
local max_depth=${#dirs[@]}
|
||||||
INPUT_DIR_NAMES_MAX_DEPTH="${INPUT_DIR_NAMES_MAX_DEPTH:-$max_depth}"
|
INPUT_DIR_NAMES_MAX_DEPTH="${INPUT_DIR_NAMES_MAX_DEPTH:-$max_depth}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue