change bash to shell
MODIFY
WalletWasabi/Helpers/EnvironmentHelpers.cs
WalletWasabi/Helpers/EnvironmentHelpers.cs
@@ -52,7 +52,7 @@ namespace WalletWasabi.Helpers
/// https://stackoverflow.com/a/47918132/2061103
/// </summary>
/// <param name="cmd"></param>
- public static void BashExec(string cmd, bool waitForExit = true)
+ public static void ShellExec(string cmd, bool waitForExit = true)
{
var escapedArgs = cmd.Replace("\"", "\\\"");
@@ -64,7 +64,7 @@ namespace WalletWasabi.Helpers
UseShellExecute = false,
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
- FileName = "/bin/bash",
+ FileName = "/bin/sh",
Arguments = $"-c \"{escapedArgs}\""
}
};

MODIFY
WalletWasabi/TorSocks5/TorProcessManager.cs
WalletWasabi/TorSocks5/TorProcessManager.cs
@@ -86,7 +86,7 @@ namespace WalletWasabi.TorSocks5
}
// Make sure there's sufficient permission.
- EnvironmentHelpers.BashExec($"chmod -R 777 {torDir}");
+ EnvironmentHelpers.ShellExec($"chmod -R 777 {torDir}");
}
else
{
@@ -107,9 +107,8 @@ namespace WalletWasabi.TorSocks5
}
else // Linux and OSX
{
- string cmd = $"LD_LIBRARY_PATH=$LD_LIBRARY_PATH:={torDir}/Tor && export LD_LIBRARY_PATH && cd {torDir}/Tor && ./tor";
- Console.WriteLine(cmd);
- EnvironmentHelpers.BashExec(cmd, false);
+ string runTorCmd = $"LD_LIBRARY_PATH=$LD_LIBRARY_PATH:={torDir}/Tor && export LD_LIBRARY_PATH && cd {torDir}/Tor && ./tor";
+ EnvironmentHelpers.ShellExec(runTorCmd, false);
}
await Task.Delay(1000);

change bash to shell