Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 7b08073

Browse files
committed
If running bash fails, don't fail the whole chain, ignore the error and continue
1 parent 1e02102 commit 7b08073

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public void Run(bool firstRun)
5858
{
5959
setExistingEnvironmentPath = new SimpleProcessTask(CancellationToken, "bash".ToNPath(), "-c \"/usr/libexec/path_helper\"")
6060
.Configure(ProcessManager, dontSetupGit: true)
61+
.Catch(e => true) // make sure this doesn't throw if the task fails
6162
.Then((success, path) => success ? path.Split(new[] { "\"" }, StringSplitOptions.None)[1] : null);
6263
}
6364
else

0 commit comments

Comments
 (0)