Skip to content

Commit

Permalink
fix: Do not use absoulte paths to the postprocessors (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Nov 16, 2024
1 parent 0239da2 commit 7219c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/postprocessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ impl PostProcessor {
pub fn get_default() -> Vec<Self> {
let mut postprocessors = Vec::new();

let shfmt = PostProcessor::new("shfmt", "/usr/bin/shfmt");
let shfmt = PostProcessor::new("shfmt", "shfmt");
shfmt.cmd().borrow_mut().arg("-i").arg("4");
shfmt.cmd().borrow_mut().arg("-ln").arg("bash");
postprocessors.push(shfmt);

let bshchk = PostProcessor::new("bshchk", "/usr/bin/bshchk");
let bshchk = PostProcessor::new("bshchk", "bshchk");
bshchk.cmd().borrow_mut().arg("--ignore-shebang");
postprocessors.push(bshchk);

Expand Down

0 comments on commit 7219c34

Please sign in to comment.