Skip to content

Commit 38059f2

Browse files
committed
Update CmdHelper.cs
1 parent 9dcf495 commit 38059f2

File tree

1 file changed

+3
-9
lines changed
  • framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Utils

1 file changed

+3
-9
lines changed

framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Utils/CmdHelper.cs

+3-9
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,14 @@ public static int RunCmd(string command)
2727
}
2828
}
2929

30-
public static string RunCmdAndGetOutput(string command)
31-
{
32-
return RunCmdAndGetOutput(command, out int _);
33-
}
34-
3530
public static string RunCmdAndGetOutput(string command, out bool isExitCodeSuccessful)
3631
{
37-
var output = RunCmdAndGetOutput(command, out int exitCode);
38-
isExitCodeSuccessful = exitCode == SuccessfulExitCode;
32+
var output = RunCmdAndGetOutput(command);
33+
isExitCodeSuccessful = true;
3934
return output;
4035
}
4136

42-
public static string RunCmdAndGetOutput(string command, out int exitCode)
37+
public static string RunCmdAndGetOutput(string command)
4338
{
4439
string output;
4540

@@ -65,7 +60,6 @@ public static string RunCmdAndGetOutput(string command, out int exitCode)
6560
}
6661
}
6762

68-
exitCode = process.ExitCode;
6963
}
7064

7165
return output.Trim();

0 commit comments

Comments
 (0)