fix: don't add luau extension for unix

This commit is contained in:
daimond113 2024-08-13 20:15:22 +02:00
parent 4f03155af0
commit 17c2196522
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@ impl InstallCommand {
continue;
}
let bin_file = bin_folder.join(format!("{alias}.luau"));
let bin_file = bin_folder.join(alias);
std::fs::write(&bin_file, bin_link_file(alias))
.context("failed to write bin link file")?;

View file

@ -103,7 +103,7 @@ fn run() -> anyhow::Result<()> {
let status = std::process::Command::new("lune")
.arg("run")
.arg(exe.with_extension("luau"))
.arg(exe.with_extension(""))
.args(std::env::args_os().skip(1))
.current_dir(project_root_dir)
.status()