Skip to content
Snippets Groups Projects
Commit d1287b2a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Remove double slash

parent ec669214
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment