Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Stardrop/Assets/Stardrop.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/bin/env bash
chmod u+x ./Internal
./Internal
2 changes: 1 addition & 1 deletion Stardrop/Utilities/External/SMAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static ProcessStartInfo GetPrepareProcess(bool hideConsole)
Program.helper.Log($"Starting SMAPI with the following arguments: {arguments}");
var processInfo = new ProcessStartInfo
{
FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? smapiInfo.FullName : "/bin/bash",
FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? smapiInfo.FullName : "/bin/env bash",
Arguments = arguments,
WorkingDirectory = smapiInfo.DirectoryName,
RedirectStandardOutput = false,
Expand Down
4 changes: 2 additions & 2 deletions Stardrop/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ private async Task HandleStardropUpdateCheck(bool manualCheck = false)
string[] arguments = new string[] { $"chmod +x {scriptPath}", $"{scriptPath}" };
var processInfo = new ProcessStartInfo
{
FileName = "/bin/bash",
FileName = "/bin/env bash",
Arguments = $"-c \"{string.Join(" ; ", arguments)}\"",
CreateNoWindow = true,
UseShellExecute = false
Expand Down Expand Up @@ -2442,7 +2442,7 @@ private void CreateDirectoryJunctions(List<string> arguments)
// Prepare the process
var processInfo = new ProcessStartInfo
{
FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "cmd" : "/bin/bash",
FileName = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "cmd" : "/bin/env bash",
Arguments = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $"/C {string.Join(" & ", arguments)}" : $"-c \"{string.Join(" ; ", arguments)}\"",
RedirectStandardOutput = true,
RedirectStandardError = true,
Expand Down