Skip to content

Commit

Permalink
Fix extra space after HELIX_WORKITEM_ID and HELIX_CURRENT_LOG variabl…
Browse files Browse the repository at this point in the history
…es (#184)

* Fix extra space after HELIX_WORKITEM_ID variable

This causes an error when copy-pasted into the shell otherwise.

* HELIX_CURRENT_LOG too
  • Loading branch information
akoeplinger committed Nov 18, 2023
1 parent 2c36259 commit 7374087
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DevOps.Util/HelixServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ string SetVariable(string name, string value) =>
Console.WriteLine(SetVariable("HELIX_CORRELATION_PAYLOAD", correlationDir));
Console.WriteLine(SetVariable("HELIX_PYTHONPATH", "echo skipping python"));
Console.WriteLine(SetVariable("HELIX_WORKITEM_FRIENDLYNAME", workItemInfo.WorkItemId!));
Console.WriteLine(SetVariable("HELIX_WORKITEM_ID ", workItemInfo.WorkItemId!));
Console.WriteLine(SetVariable("HELIX_WORKITEM_ID", workItemInfo.WorkItemId!));
Console.WriteLine(SetVariable("HELIX_WORKITEM_PAYLOAD", itemDir));
Console.WriteLine(SetVariable("HELIX_WORKITEM_ROOT", itemDir));
Console.WriteLine(SetVariable("HELIX_WORKITEM_UPLOAD_ROOT", itemDir));
Console.WriteLine(SetVariable("HELIX_DUMP_FOLDER", itemDir));
Console.WriteLine(SetVariable("HELIX_CURRENT_LOG ", Path.Combine(itemDir, "log.txt")));
Console.WriteLine(SetVariable("HELIX_CURRENT_LOG", Path.Combine(itemDir, "log.txt")));
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Console.WriteLine($"chmod +x {workItemInfo.Command}");
Expand Down

0 comments on commit 7374087

Please sign in to comment.