From d1287b2abfaf0f2ee760cf0790a94978315a4189 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Fri, 23 Jun 2017 16:16:48 +0200 Subject: [PATCH] Remove double slash --- gitlab/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/functions.sh b/gitlab/functions.sh index fd36ebe..f02c5c2 100644 --- a/gitlab/functions.sh +++ b/gitlab/functions.sh @@ -264,6 +264,7 @@ dav_upload_folder() { # to make something like '../folder1/folder2/folder-to-upload/test.txt' # into 'private-upload/docs/test.txt' local server_path="${fname/$1/$2}" + server_path=${server_path%?} #remove double slash by the end # if its a file... if [[ -f "${fname}" ]]; then -- GitLab