fixed incorrect relative path resolution in setup

This commit is contained in:
Eugene 2025-08-02 20:18:00 +02:00
parent 4d5ebe42eb
commit 05235d9627
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -110,8 +110,9 @@ pub(crate) async fn command(cli: &crate::Cli) -> Result<()> {
.interact_text()?
}
};
let data_path = config_dir.join(PathBuf::from(&data_path)).canonicalize()?;
create_dir_all(&data_path)?;
let data_path = PathBuf::from(&data_path).canonicalize()?;
let db_path = data_path.join("db");
create_dir_all(&db_path)?;