From 967c8a0609144c64f86562e06f4c2770fac345e2 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 23 Nov 2022 19:00:52 -0700 Subject: [PATCH] Updated get-changed-paths.sh --- get-changed-paths.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/get-changed-paths.sh b/get-changed-paths.sh index d94403ef..00f37552 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -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[@]}