Skip to content

Commit 3bf74f9

Browse files
committed
Handle empty lines in user-provided scripts
1 parent d5bd49d commit 3bf74f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Main.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ public void WriteToFile(string path, XmlDocument doc)
209209

210210
public void WriteToFile(string path, string line)
211211
{
212-
if (string.IsNullOrEmpty(line))
212+
if (string.IsNullOrWhiteSpace(line))
213213
{
214-
Command($@"cmd.exe /c "">>""{path}"" echo(""");
214+
Command($@"cmd.exe /c "">>""{path}"" echo({line}""");
215215
}
216216
else
217217
{

0 commit comments

Comments
 (0)