(&self)
| 760 | } |
| 761 | |
| 762 | fn is_windows_admin(&self) -> bool { |
| 763 | let os = self.get_os(); |
| 764 | if WINDOWS.is(os) { |
| 765 | let command = Command::new("net", vec![String::from("session")]); |
| 766 | let output = run_shell_command(command).unwrap_or_default(); |
| 767 | !output.is_empty() && !output.contains("error") && !output.contains("not recognized") |
| 768 | } else { |
| 769 | false |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | fn is_safari(&self) -> bool { |
| 774 | self.get_browser_name().contains(SAFARI_NAME) |
no test coverage detected