Skip to content

Commit

Permalink
fix: Fix trailing whitespace on shell command output
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Jul 29, 2024
1 parent 2e7f373 commit bbf5007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ fn resolve_template_value(val: String) -> anyhow::Result<String> {
);
}
let val = str::from_utf8(&output.stdout)?;
return Ok(val.to_string());
return Ok(val.trim().to_string());
}
// env var
if val.starts_with("$") {
Expand Down

0 comments on commit bbf5007

Please sign in to comment.