fix: older versions of lsar didn't have jss parameter, closes #202

This commit is contained in:
sxyazi 2023-10-16 09:12:32 +08:00
parent fa5de51ce8
commit 6d310e237a
No known key found for this signature in database

View file

@ -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());
}