Skip to content

Commit

Permalink
chore: remove powershell support
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Lecoq committed Jan 31, 2024
1 parent 5c09dee commit bdfaaeb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/commands/bug_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,10 @@ fn get_shell_info() -> ShellInfo {
fn get_shell_version(shell: &str) -> String {
let time_limit = Duration::from_millis(500);
match shell {
"powershell" => exec_cmd(
shell,
&["(Get-Host | Select Version | Format-Table -HideTableHeaders | Out-String).trim()"],
time_limit,
),
"powershecll" => {
error!("Powershell is not supported.");
None
}
_ => exec_cmd(shell, &["--version"], time_limit),
}
.map_or_else(
Expand Down

0 comments on commit bdfaaeb

Please sign in to comment.