mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
chore: fmt
This commit is contained in:
parent
14f10d618c
commit
1f86403eb8
1 changed files with 4 additions and 3 deletions
|
|
@ -63,9 +63,10 @@ pub fn highlight_difference(data: &Data, suggested_command: &str) -> Option<Stri
|
|||
if let Some(sudo) = data.privilege.clone() {
|
||||
if suggested_command.contains("&&")
|
||||
|| suggested_command.contains("||")
|
||||
|| suggested_command.contains('>') {
|
||||
split_suggested_command[0] = format!("{} -c \"", shell).blue().to_string()
|
||||
+ &split_suggested_command[0];
|
||||
|| suggested_command.contains('>')
|
||||
{
|
||||
split_suggested_command[0] =
|
||||
format!("{} -c \"", shell).blue().to_string() + &split_suggested_command[0];
|
||||
let len = split_suggested_command.len() - 1;
|
||||
split_suggested_command[len] =
|
||||
split_suggested_command[len].clone() + "\"".blue().to_string().as_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue