diff options
| author | diogo464 <[email protected]> | 2021-07-14 15:07:32 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2021-07-14 15:07:32 +0100 |
| commit | 1c0dee8e60d9c1c989a3712e7d1e19debe981e8a (patch) | |
| tree | 07997fddae442679c90914b2c4abe3c953250838 /dotup_cli/src/commands/link.rs | |
| parent | 4adc2435da7d58cd34b9f1706b3cea9fb524b946 (diff) | |
Small changes to logging and docs.
Diffstat (limited to 'dotup_cli/src/commands/link.rs')
| -rw-r--r-- | dotup_cli/src/commands/link.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dotup_cli/src/commands/link.rs b/dotup_cli/src/commands/link.rs index ed7ee55..4c1ae06 100644 --- a/dotup_cli/src/commands/link.rs +++ b/dotup_cli/src/commands/link.rs | |||
| @@ -106,9 +106,12 @@ fn link_file( | |||
| 106 | .strip_prefix(base_canonical) | 106 | .strip_prefix(base_canonical) |
| 107 | .expect("Failed to remove prefix from origin path"); | 107 | .expect("Failed to remove prefix from origin path"); |
| 108 | let destination = destination.join(partial); | 108 | let destination = destination.join(partial); |
| 109 | let origin = origin_canonical | ||
| 110 | .strip_prefix(depot.base_path()) | ||
| 111 | .unwrap_or(&origin_canonical); | ||
| 109 | 112 | ||
| 110 | let link_params = LinkCreateParams { | 113 | let link_params = LinkCreateParams { |
| 111 | origin: origin_canonical, | 114 | origin: origin.to_path_buf(), |
| 112 | destination, | 115 | destination, |
| 113 | }; | 116 | }; |
| 114 | params.push(link_params); | 117 | params.push(link_params); |
