Skip to content

Commit

Permalink
Merge pull request #19 from nizanrosh/fix/configure
Browse files Browse the repository at this point in the history
Fix/configure
  • Loading branch information
nizanrosh authored Jan 22, 2024
2 parents 92a6a8f + 401d40b commit e5369a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>1.6.0</VersionPrefix>
<VersionPrefix>1.6.1</VersionPrefix>
<LangVersion>latest</LangVersion>

<Authors>Nizan Rosh</Authors>
Expand Down
5 changes: 4 additions & 1 deletion src/main/Okta.Aws.Cli/Cli/LogoutArgumentHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public LogoutArgumentHandler(IConfiguration configuration)
public Task Handle(CancellationToken cancellationToken)
{
var userSettingsFolder = FileHelper.GetUserSettingsFolder(_configuration);
File.Delete($"{userSettingsFolder}/session.json");
var sessionFilePath = $"{userSettingsFolder}/session.json";
if (!File.Exists(sessionFilePath)) return Task.CompletedTask;

File.Delete(sessionFilePath);

return Task.CompletedTask;
}
Expand Down

0 comments on commit e5369a3

Please sign in to comment.