From 1c9a614a4f3558039458ab8ec3d33227d2049df4 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 23 Nov 2022 19:26:31 -0700 Subject: [PATCH] Updated get-changed-paths.sh --- get-changed-paths.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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