Skip to content

Commit

Permalink
case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
meop committed Oct 23, 2024
1 parent d7f232c commit 42d35b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ctrl"
version = "0.3.18"
version = "0.3.19"
edition = "2021"
description = "CLI tool for cross platform OS management"
categories = ["command-line-interface"]
Expand Down
2 changes: 1 addition & 1 deletion src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub(crate) fn run_cmd_filtered(command: &String, filters: &Vec<String>) -> Resul
logcln("matches:", Category::Info);
for line in String::from_utf8(output.stdout).unwrap().lines() {
for filter in filters {
if line.contains(filter) {
if line.to_lowercase().contains(&filter.to_lowercase()) {
logln(line);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn get_managers() -> Vec<Box<dyn Manager>> {
managers.push(Box::new(Pacman { program }));
}
// Android == Termux
Type::Android | Type::Debian | Type::Mint | Type::Raspbian | Type::Ubuntu => {
Type::Debian | Type::Ubuntu | Type::Mint | Type::Android => {
let program = if exists_in_path("pkg") {
"pkg".to_string()
} else if exists_in_path("apt") {
Expand Down

0 comments on commit 42d35b7

Please sign in to comment.