Skip to content

Commit

Permalink
fix: older versions of lsar didn't have jss parameter, closes #202
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Oct 16, 2023
1 parent fa5de51 commit 6d310e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/external/lsar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ pub struct LsarFile {

#[allow(clippy::manual_map)]
pub async fn lsar(path: &Path, skip: usize, limit: usize) -> Result<Vec<LsarFile>, PeekError> {
let output =
Command::new("lsar").args(["-j", "-jss"]).arg(path).kill_on_drop(true).output().await?;

let output = Command::new("lsar").arg("-j").arg(path).kill_on_drop(true).output().await?;
if !output.status.success() {
return Err(String::from_utf8_lossy(&output.stderr).to_string().into());
}
Expand Down

0 comments on commit 6d310e2

Please sign in to comment.