Skip to content

Commit

Permalink
Fix default cache root path
Browse files Browse the repository at this point in the history
  • Loading branch information
shenglol committed Dec 10, 2024
1 parent 6349074 commit 8a124ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bicep.Core/Features/FeatureProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static T ReadEnumEnvVar<T>(string envVar, T defaultValue) where T : stru

private IDirectoryHandle GetCacheRootDirectory(string? customPath) =>
this.GetCacheRootDirectoryFromLocalPath(string.IsNullOrWhiteSpace(customPath)
? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
? $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.bicep"
: customPath);

private IDirectoryHandle GetCacheRootDirectoryFromLocalPath(string localPath) =>
Expand Down

0 comments on commit 8a124ec

Please sign in to comment.