Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit ce52feb

Browse files
committed
swap cmd to find
1 parent 4b1cedd commit ce52feb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/etc/ExternalCommand/Linux.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Linux : ICommandExecuter
1313
{
1414
public async Task<ExecuteResult> Execute(string cmd, TimeSpan timeoutWait)
1515
{
16-
var binaries = new[] { "/usr/bin/zsh", "/bin/bash" }.Where(x => x.AsFile().Exists).ToArray();
16+
var binaries = new[] { "/bin/bash", "/usr/bin/zsh" }.Where(x => x.AsFile().Exists).ToArray();
1717

1818
if (!binaries.Any())
1919
return new ExecuteResult(ElevateResult.UNK, "", "zsh/bash not found.", "-1");
@@ -26,8 +26,6 @@ public async Task<ExecuteResult> Execute(string cmd, TimeSpan timeoutWait)
2626
var proc = new Process
2727
{
2828
StartInfo = new ProcessStartInfo(bin, string.Join(" ", command))
29-
{
30-
}
3129
};
3230
Console.WriteLine($"Starting process '{bin}' when args '{string.Join(" ", command)}'...");
3331

0 commit comments

Comments
 (0)