From 80e364a5d0325efe4702271d2c33435e64caeb53 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 23 Nov 2022 17:35:43 -0700 Subject: [PATCH] Update get-changed-paths.sh --- get-changed-paths.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-changed-paths.sh b/get-changed-paths.sh index e593ecfc..9690618f 100755 --- a/get-changed-paths.sh +++ b/get-changed-paths.sh @@ -37,7 +37,7 @@ function dirname_max_depth() { local output=${dirs[1]} local depth=2 - while [ $depth -le $max_depth ]; do + while [ $depth -le "$max_depth" ]; do if [[ -n "${dirs[$depth]}" ]]; then output="$output/${dirs[$depth]}" else