From 3840bc84e62dd2631d868c55359fdf0aa46eac8c Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 23 Nov 2022 19:30:57 -0700 Subject: [PATCH] Update get-changed-paths.sh --- get-changed-paths.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-changed-paths.sh b/get-changed-paths.sh index 72cf6d22..1a29a448 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -38,9 +38,9 @@ function get_dirname_max_depth() { fi local output=${dirs[1]} - local depth=2 + local depth="2" - while [ $depth -le "$max_depth" ]; do + while [ "$depth" -le "$max_depth" ]; do output="$output/${dirs[$depth]}" depth=$((depth + 1)) done