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

Commit

Permalink
Try using bash for both Mac and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Sep 11, 2019
1 parent 7ee0b3d commit f947843
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions XRTK-Core/Packages/com.xrtk.core/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_OSX
#if UNITY_EDITOR_WIN
if (updateApplication)
{
application = "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal";
application = "cmd.exe";
}

if (!args.ToLower().StartsWith("-c "))
if (!args.ToLower().StartsWith("/c "))
{
args = $"-c {args}";
args = $"/c {args}";
}
#elif UNITY_EDITOR_LINUX
#else
if (updateApplication)
{
application = "/bin/bash";
Expand All @@ -247,16 +247,6 @@ 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 f947843

Please sign in to comment.