Skip to content

Commit f991c10

Browse files
Merge branch 'main' into users/nchapagain/EnableCertDownload
2 parents 989f114 + 4b76bdd commit f991c10

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/VirtualClient/VirtualClient.Dependencies/AMDGPUDriverInstallation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace VirtualClient.Dependencies
66
using System;
77
using System.Collections.Generic;
88
using System.Diagnostics.CodeAnalysis;
9+
using System.IO;
910
using System.IO.Abstractions;
1011
using System.Linq;
1112
using System.Threading;
@@ -200,6 +201,8 @@ private async Task InstallAMDGPUDriverLinux(EventContext telemetryContext, Cance
200201
// paths in the $PATH environment variable post installation.
201202
string bashRcPath = $"/home/{this.Username}/.bashrc";
202203

204+
this.fileSystem.Directory.CreateDirectory(Path.GetDirectoryName(bashRcPath) !);
205+
203206
// We hit a bug where the .bashrc file does not exist on the system. To prevent issues later
204207
// we are creating the file if it is missing.
205208
if (!this.fileSystem.File.Exists(bashRcPath))

0 commit comments

Comments
 (0)