Skip to content

Commit

Permalink
Merge pull request #8 from MatteoJoliveau/fix/shebang
Browse files Browse the repository at this point in the history
Use /usr/bin/env to locate the bash interpreter
  • Loading branch information
messense authored Feb 21, 2022
2 parents 0ebec6b + 922071a commit 21bf8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fn write_linker_wrapper(path: &Path, command: &str, args: &str) -> Result<()> {
} else {
env::current_exe()?
};
writeln!(&mut custom_linker_file, "#!/bin/bash")?;
writeln!(&mut custom_linker_file, "#!/usr/bin/env bash")?;
writeln!(
&mut custom_linker_file,
"{} zig {} -- {} $@",
Expand Down

0 comments on commit 21bf8ec

Please sign in to comment.