3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-17 03:47:20 +00:00

fixed shellcheck error

This commit is contained in:
Tonye Jack 2022-11-23 18:17:30 -07:00
parent bcd97d2870
commit f08344bfbc

View file

@ -27,7 +27,8 @@ fi
function dirname_max_depth() {
local dir="$1"
local dirs=($(echo "$dir" | tr "/" " "))
local dirs=()
IFS="/" read -r -a dirs <<< "$dir"
local max_depth=${#dirs[@]}
INPUT_DIR_NAMES_MAX_DEPTH="${INPUT_DIR_NAMES_MAX_DEPTH:-$max_depth}"