Skip to content

Commit

Permalink
fix: should use .bat suffix on windows for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed May 31, 2024
1 parent 6ecd44e commit 398e5b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,12 @@ impl Args {
}

if !self.no_switch {
#[cfg(unix)]
let sym_bin = bin_dir.join("aiken");

#[cfg(windows)]
let sym_bin = bin_dir.join("aiken.bat");

let src_bin = if is_past_cut_off {
install_dir
.join(asset_name.replace(".tar.gz", ""))
Expand Down

0 comments on commit 398e5b0

Please sign in to comment.