mirror of https://github.com/winsw/winsw
expand environment variables
git-svn-id: https://svn.kenai.com/svn/winsw~subversion/trunk@31 c8b2a3fe-9b5b-6a51-a37e-dc31b0e308faremotes/git-svn
parent
b8dbc77d7e
commit
5177de8b66
6
Main.cs
6
Main.cs
|
@ -403,8 +403,8 @@ namespace winsw
|
||||||
|
|
||||||
internal Download(XmlNode n)
|
internal Download(XmlNode n)
|
||||||
{
|
{
|
||||||
From = n.Attributes["from"].Value;
|
From = Environment.ExpandEnvironmentVariables(n.Attributes["from"].Value);
|
||||||
To = n.Attributes["to"].Value;
|
To = Environment.ExpandEnvironmentVariables(n.Attributes["to"].Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Perform()
|
public void Perform()
|
||||||
|
@ -617,7 +617,7 @@ namespace winsw
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
LogEvent("Failed to download " + d.From, EventLogEntryType.Warning);
|
WriteEvent("Failed to download " + d.From, e);
|
||||||
// but just keep going
|
// but just keep going
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue