workspace: use folder name for packages

This commit is contained in:
nym21
2025-02-05 23:42:48 +01:00
parent d86d614520
commit 5aaa55197e
33 changed files with 3776 additions and 1655 deletions
+2 -4
View File
@@ -4,9 +4,9 @@ use std::{
path::{Path, PathBuf},
};
use biter::bitcoincore_rpc::Auth;
use clap::Parser;
use color_eyre::eyre::eyre;
use iterator::bitcoincore_rpc::Auth;
use log::info;
use serde::{Deserialize, Serialize};
@@ -270,9 +270,7 @@ impl Config {
fn fix_user_path(path: &str) -> PathBuf {
let fix = move |pattern: &str| {
if path.starts_with(pattern) {
let path = &path
.replace(&format!("{pattern}/"), "")
.replace(pattern, "");
let path = &path.replace(&format!("{pattern}/"), "").replace(pattern, "");
let home = std::env::var("HOME").unwrap();