From fe0097a70acffd0bc40dcfbab520844d5e255d16 Mon Sep 17 00:00:00 2001
From: jaden <noreply@example.com>
Date: Mon, 26 Jun 2017 18:30:01 +0200
Subject: [PATCH] trying different way of looping over array

---
 gitlab/functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gitlab/functions.sh b/gitlab/functions.sh
index 8c9e462..c907e01 100644
--- a/gitlab/functions.sh
+++ b/gitlab/functions.sh
@@ -242,7 +242,7 @@ dav_recursive_mkdir() {
   local current_subpath=''
 
   # loop through segments
-  for seg in $path_segments; do
+  for seg in "${path_segments[@]}"; do
     # append each segment to the current subpath
     current_subpath="${current_subpath}${seg}/"
     log_info "mkdir $DOCSERVER/$current_subpath"
-- 
GitLab