diff options
| author | Luke Karrys <luke@lukekarrys.com> | 2023-03-06 15:46:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-06 22:46:03 +0000 |
| commit | ca5bbea0d4c4fd86eb80f99688bcb78f8ba68877 (patch) | |
| tree | ec0328acc9168672ec9d4cb22d022c83a02d43b1 /src/command/client/sync/login.rs | |
| parent | Windows support (#754) (diff) | |
| download | atuin-ca5bbea0d4c4fd86eb80f99688bcb78f8ba68877.zip | |
fix(client): always read session_path from settings (#757)
* fix(client): always read session_path from settings
* fixup! fix(client): always read session_path from settings
* fixup! fix(client): always read session_path from settings
Diffstat (limited to '')
| -rw-r--r-- | src/command/client/sync/login.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/client/sync/login.rs b/src/command/client/sync/login.rs index 06e65196..6aa2d847 100644 --- a/src/command/client/sync/login.rs +++ b/src/command/client/sync/login.rs @@ -33,9 +33,9 @@ fn get_input() -> Result<String> { impl Cmd { pub async fn run(&self, settings: &Settings) -> Result<()> { - let session_path = atuin_common::utils::data_dir().join("session"); + let session_path = settings.session_path.as_str(); - if session_path.exists() { + if PathBuf::from(session_path).exists() { println!( "You are already logged in! Please run 'atuin logout' if you wish to login again" ); |
