Fixed a bug with the script name parsing for paths with spaces.
git-svn-id: https://duplicati.googlecode.com/svn/trunk@1432 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
@@ -171,16 +171,7 @@ namespace Duplicati.Library.Modules.Builtin
|
||||
{
|
||||
try
|
||||
{
|
||||
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
|
||||
int space_ix = scriptpath.IndexOf(' ');
|
||||
if (space_ix > 0)
|
||||
{
|
||||
psi.FileName = scriptpath.Substring(0, space_ix);
|
||||
psi.Arguments = scriptpath.Substring(space_ix + 1);
|
||||
}
|
||||
else
|
||||
psi.FileName = scriptpath;
|
||||
|
||||
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(scriptpath);
|
||||
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
|
||||
psi.CreateNoWindow = true;
|
||||
psi.UseShellExecute = false;
|
||||
|
||||
Reference in New Issue
Block a user