diff --git a/get-changed-paths.sh b/get-changed-paths.sh index 93da7127..72cf6d22 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -41,12 +41,7 @@ function get_dirname_max_depth() { local depth=2 while [ $depth -le "$max_depth" ]; do - echo "${dirs[*]}" - if [[ -n "${dirs[$depth]}" ]]; then - output="$output/${dirs[$depth]}" - else - break - fi + output="$output/${dirs[$depth]}" depth=$((depth + 1)) done