fixed path issue on macos
This commit is contained in:
@@ -59,12 +59,12 @@ fn build_file(paths: Vec<std::path::PathBuf>) {
|
|||||||
let in_path = paths
|
let in_path = paths
|
||||||
.first()
|
.first()
|
||||||
.expect(invalid_path_message)
|
.expect(invalid_path_message)
|
||||||
|
.strip_prefix(¤t_dir())
|
||||||
|
.expect(invalid_path_message)
|
||||||
.to_str()
|
.to_str()
|
||||||
.expect(invalid_path_message)
|
.expect(invalid_path_message);
|
||||||
.replace(¤t_dir(), "")
|
|
||||||
.replace("/./", "./");
|
|
||||||
|
|
||||||
|
|
||||||
|
let in_path = format!("./{}", in_path);
|
||||||
let result = docki_build(&in_path);
|
let result = docki_build(&in_path);
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
|
|||||||
Reference in New Issue
Block a user