Skip to content

Commit

Permalink
fix #4 (#5)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
LittleLittleCloud committed Apr 26, 2024
1 parent bb2ad6d commit 5570a15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion PowershellRunnerAgent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ public Task<IMessage> GenerateReplyAsync(IEnumerable<IMessage> messages, Generat
}
else
{
var successMessage = powershell.Streams.Information?.Select(e => e.ToString()).Aggregate((a, b) => $"{a}\n{b}") ?? "no output";
var information = powershell.Streams.Information;
string successMessage = "script run succeed without any output";
if (information is not null && information.Any())
{
successMessage = information.Select(e => e.ToString()).Aggregate((a, b) => $"{a}\n{b}");
}
successMessage = @$"[SUCCESS]
{successMessage}";

Expand Down
2 changes: 1 addition & 1 deletion eng/MetaInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.0.2</VersionPrefix>
<VersionPrefix>0.0.3</VersionPrefix>
<Authors>LittleLittleCloud</Authors>
<PackageProjectUrl>https://github.com/LittleLittleCloud/PowershellGPT</PackageProjectUrl>
<RepositoryUrl>https://github.com/LittleLittleCloud/PowershellGPT</RepositoryUrl>
Expand Down

0 comments on commit 5570a15

Please sign in to comment.