Commit e9366030 authored by Efthymia Bika's avatar Efthymia Bika

Use quotes for directory argument

parent aefd8be8
......@@ -235,9 +235,9 @@ function run_duplicity(restore, force) {
directory = String(stdout).replace(/(\r\n|\n|\r)/gm, "");
if(error) $("#msg").html(error);
var dirs = directory + " swift://" + container_name;
var dirs = "'" + directory + "' swift://" + container_name;
if(restore) {
dirs = " swift://" + container_name + " " + directory;
dirs = " swift://" + container_name + " '" + directory + "'";
}
var cmd = build_win_commands();
var dup_cmd = DUPLICITY_PATH + " " + type_arg + force_arg + exclude_device_files_arg
......@@ -248,9 +248,9 @@ function run_duplicity(restore, force) {
} else {
set_envs();
var dirs = directory + " swift://" + container_name;
var dirs = "'" + directory + "' swift://" + container_name;
if(restore) {
dirs = " swift://" + container_name + " " + directory;
dirs = " swift://" + container_name + " '" + directory + "'";
}
var dup_cmd = DUPLICITY_PATH + " " + type_arg + force_arg + exclude_device_files_arg +
dup_verbosity + log_arg + include_arg + exclude_arg + file_arg + time_arg + dirs + ";";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment