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