xtask: fix linking

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I49a5ffb427233d45b1fd10730a8347e86a6a6964
This commit is contained in:
raf 2025-11-15 20:17:35 +03:00
commit 78a97a9a4d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
target/
bin/
completions/

View file

@ -162,7 +162,8 @@ fn generate_completions(
#[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());
}