Skip to content

Commit

Permalink
Remove trailing sZs if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
joncrangle authored and wez committed Sep 14, 2024
1 parent 822a7dd commit ab9b9d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua-api-crates/plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ fn compute_repo_dir(url: &str) -> String {
c => dir.push_str(&format!("u{}", c as u32)),
}
}
if dir.ends_with("sZs") {
dir.truncate(dir.len() - 3);
}
dir
}

Expand Down

0 comments on commit ab9b9d9

Please sign in to comment.