Skip to content

Commit

Permalink
fix: credentials file without toml extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarmstrongiv committed Nov 5, 2024
1 parent 3155171 commit 0238ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
var accessKey = context.ParseResult.GetValueForOption(accessKeyOption) ?? Environment.GetEnvironmentVariable("BUNNY_ACCESS_KEY") ?? "";
var profile = context.ParseResult.GetValueForOption(profileOption) ?? Environment.GetEnvironmentVariable("BUNNY_PROFILE") ?? "";
var profileFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".bunny", "credentials.toml");
var profileFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".bunny", "credentials");
var hasAccessKeyFlag = !string.IsNullOrEmpty(accessKey);
var hasProfileFlag = !string.IsNullOrEmpty(profile);
// access key (from any option source) overrides profile
Expand Down
2 changes: 1 addition & 1 deletion bunny-sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.0.9</Version>
<Version>0.0.10</Version>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>bunny_sdk_cli</RootNamespace>
Expand Down

0 comments on commit 0238ce2

Please sign in to comment.