Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Revert "Try using bash for both Mac and Linux"
Browse files Browse the repository at this point in the history
This reverts commit f947843.
  • Loading branch information
StephenHodgson committed Sep 11, 2019
1 parent 5553c72 commit 01d3378
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Extensions/ProcessExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,17 @@ private static void SetupPlatformArgs(ref string args, ref string application)
{
var updateApplication = string.IsNullOrWhiteSpace(application);

#if UNITY_EDITOR_WIN
#if UNITY_EDITOR_OSX
if (updateApplication)
{
application = "cmd.exe";
application = "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal";
}

if (!args.ToLower().StartsWith("/c "))
if (!args.ToLower().StartsWith("-c "))
{
args = $"/c {args}";
args = $"-c {args}";
}
#else
#elif UNITY_EDITOR_LINUX
if (updateApplication)
{
application = "/bin/bash";
Expand All @@ -247,6 +247,16 @@ private static void SetupPlatformArgs(ref string args, ref string application)
{
args = $"-c {args}";
}
#else
if (updateApplication)
{
application = "cmd.exe";
}

if (!args.ToLower().StartsWith("/c "))
{
args = $"/c {args}";
}
#endif
}
}
Expand Down

0 comments on commit 01d3378

Please sign in to comment.