Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace VirtualClient.Dependencies
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.IO.Abstractions;
using System.Linq;
using System.Threading;
Expand Down Expand Up @@ -200,6 +201,8 @@ private async Task InstallAMDGPUDriverLinux(EventContext telemetryContext, Cance
// paths in the $PATH environment variable post installation.
string bashRcPath = $"/home/{this.Username}/.bashrc";

this.fileSystem.Directory.CreateDirectory(Path.GetDirectoryName(bashRcPath) !);

// We hit a bug where the .bashrc file does not exist on the system. To prevent issues later
// we are creating the file if it is missing.
if (!this.fileSystem.File.Exists(bashRcPath))
Expand Down
Loading