Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
baas
Commits
22471859
Commit
22471859
authored
Oct 26, 2015
by
Efthymia Bika
Browse files
Fix include/exclude path for Windows
parent
723c6893
Changes
1
Hide whitespace changes
Inline
Side-by-side
backup-list.html
View file @
22471859
...
...
@@ -297,7 +297,16 @@
if
(
exclude
&&
!
restore
)
{
var
args
=
exclude
.
split
(
"
,
"
);
$
.
each
(
args
,
function
(
i
,
value
)
{
exclude_arg
+=
"
--exclude '
"
+
value
+
"
'
"
;
if
(
process
.
platform
==
'
win32
'
)
{
exec
(
CYGWIN_BASH
+
"
-c
\"
/usr/bin/cygpath '
"
+
value
+
"
'
\"
"
,
function
(
error
,
stdout
,
stderr
)
{
if
(
error
)
$
(
"
#msg
"
).
html
(
error
);
var
win_value
=
String
(
stdout
).
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
);
exclude_arg
+=
"
--exclude '
"
+
win_value
+
"
'
"
;
});
}
else
{
exclude_arg
+=
"
--exclude '
"
+
value
+
"
'
"
;
}
});
}
...
...
@@ -306,7 +315,16 @@
if
(
include
&&
!
restore
)
{
var
args
=
include
.
split
(
"
,
"
);
$
.
each
(
args
,
function
(
i
,
value
)
{
include_arg
+=
"
--include '
"
+
value
+
"
'
"
;
if
(
process
.
platform
==
'
win32
'
)
{
exec
(
CYGWIN_BASH
+
"
-c
\"
/usr/bin/cygpath '
"
+
value
+
"
'
\"
"
,
function
(
error
,
stdout
,
stderr
)
{
if
(
error
)
$
(
"
#msg
"
).
html
(
error
);
var
win_value
=
String
(
stdout
).
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
);
include_arg
+=
"
--include '
"
+
win_value
+
"
'
"
;
});
}
else
{
include_arg
+=
"
--include '
"
+
value
+
"
'
"
;
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment