@@ -53,25 +53,25 @@ public void Run(bool firstRun)
53
53
{
54
54
Logger . Trace ( "Run - CurrentDirectory {0}" , NPath . CurrentDirectory ) ;
55
55
56
- ITask < string > getMacEnvironmentPathTask ;
56
+ ITask < string > setExistingEnvironmentPath ;
57
57
if ( Environment . IsMac )
58
58
{
59
- getMacEnvironmentPathTask = new SimpleProcessTask ( CancellationToken , "bash" . ToNPath ( ) , "-c \" /usr/libexec/path_helper\" " )
60
- . Configure ( ProcessManager )
59
+ setExistingEnvironmentPath = new SimpleProcessTask ( CancellationToken , "bash" . ToNPath ( ) , "-c \" /usr/libexec/path_helper\" " )
60
+ . Configure ( ProcessManager , dontSetupGit : true )
61
61
. Then ( ( success , path ) => success ? path . Split ( new [ ] { "\" " } , StringSplitOptions . None ) [ 1 ] : null ) ;
62
62
}
63
63
else
64
64
{
65
- getMacEnvironmentPathTask = new FuncTask < string > ( CancellationToken , ( ) => null ) ;
65
+ setExistingEnvironmentPath = new FuncTask < string > ( CancellationToken , ( ) => null ) ;
66
66
}
67
67
68
- var setMacEnvironmentPathTask = getMacEnvironmentPathTask . Then ( ( _ , path ) => {
68
+ setExistingEnvironmentPath . OnEnd += ( t , path , success , ex ) => {
69
69
if ( path != null )
70
70
{
71
- Logger . Trace ( "Mac Environment Path Original:{0} Updated:{1}" , Environment . Path , path ) ;
71
+ Logger . Trace ( "Existing Environment Path Original:{0} Updated:{1}" , Environment . Path , path ) ;
72
72
Environment . Path = path ;
73
73
}
74
- } ) ;
74
+ } ;
75
75
76
76
var initEnvironmentTask = new ActionTask < NPath > ( CancellationToken ,
77
77
( _ , path ) => InitializeEnvironment ( path ) )
@@ -80,7 +80,7 @@ public void Run(bool firstRun)
80
80
isBusy = true ;
81
81
82
82
var octorunInstaller = new OctorunInstaller ( Environment , TaskManager ) ;
83
- var setupTask = setMacEnvironmentPathTask . Then ( octorunInstaller . SetupOctorunIfNeeded ( ) ) ;
83
+ var setupTask = setExistingEnvironmentPath . Then ( octorunInstaller . SetupOctorunIfNeeded ( ) ) ;
84
84
85
85
var initializeGitTask = new FuncTask < NPath > ( CancellationToken , ( ) =>
86
86
{
0 commit comments