mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-22 07:11:03 +00:00
fix: older versions of lsar didn't have jss parameter, closes #202
This commit is contained in:
parent
fa5de51ce8
commit
6d310e237a
1 changed files with 1 additions and 3 deletions
4
core/src/external/lsar.rs
vendored
4
core/src/external/lsar.rs
vendored
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue