From 34e8ad4eb4deffcf613eb205775aa71bd3feb181 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Fri, 7 Nov 2025 12:26:20 +0100 Subject: [PATCH] fixed path issue on macos --- src/app/commands/serve.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/commands/serve.rs b/src/app/commands/serve.rs index ec9f5ce..4a7e74e 100644 --- a/src/app/commands/serve.rs +++ b/src/app/commands/serve.rs @@ -59,12 +59,12 @@ fn build_file(paths: Vec) { let in_path = paths .first() .expect(invalid_path_message) + .strip_prefix(¤t_dir()) + .expect(invalid_path_message) .to_str() - .expect(invalid_path_message) - .replace(¤t_dir(), "") - .replace("/./", "./"); - + .expect(invalid_path_message); + let in_path = format!("./{}", in_path); let result = docki_build(&in_path); match result {