mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-16 00:03:51 +01:00
chore: preserve capitalization in non-error output
This commit is contained in:
parent
0a4437f5b5
commit
fb1d1956d0
2 changed files with 8 additions and 11 deletions
|
|
@ -173,7 +173,7 @@ pub fn install_package(data: &mut Data, package_manager: &str, package: &str) ->
|
|||
"nix" => format!("nix profile install nixpkgs#{}", package),
|
||||
"pacman" => format!("pacman -S {}", package),
|
||||
_ => match package_manager.ends_with("command-not-found") {
|
||||
true => match package.starts_with("command ") {
|
||||
true => match package.starts_with("Command ") {
|
||||
false => package.to_string(),
|
||||
true => {
|
||||
let split = package.split_whitespace().collect::<Vec<&str>>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue