Skip to content

Commit

Permalink
fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Jan 17, 2023
1 parent 0da23b3 commit daeec08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
use hemtt_error::DisplayStyle;

fn main() {
if cfg!(windows) && ansi_term::enable_ansi_support().is_err() {
#[cfg(windows)]
if ansi_term::enable_ansi_support().is_err() {
colored::control::set_override(false);
}
if let Err(e) = hemtt::execute(&hemtt::cli().get_matches()) {
Expand Down

0 comments on commit daeec08

Please sign in to comment.