diff --git a/gitlab/functions.sh b/gitlab/functions.sh index fd36ebe4ca448a5a3602d459df086554c28babee..f02c5c275ff34727d8fcdc73ab12b409f06eeefb 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