xtask: fix linking
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I49a5ffb427233d45b1fd10730a8347e86a6a6964
This commit is contained in:
parent
9a2fd73268
commit
78a97a9a4d
2 changed files with 3 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
target/
|
target/
|
||||||
bin/
|
bin/
|
||||||
|
completions/
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,8 @@ fn generate_completions(
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
std::os::unix::fs::symlink(&completion_file, &symlink_path)?;
|
let canonical_target = fs::canonicalize(&completion_file)?;
|
||||||
|
std::os::unix::fs::symlink(&canonical_target, &symlink_path)?;
|
||||||
println!("completion symlink created: {}", symlink_path.display());
|
println!("completion symlink created: {}", symlink_path.display());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue