Skip to content

Commit

Permalink
fix: Fix wrong cfg(linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji authored and epage committed Jul 5, 2024
1 parent 2d2d1f4 commit 1c5a625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clap_complete/tests/testsuite/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ pub(crate) fn has_command(command: &str) -> bool {
Ok(output) => output,
Err(e) => {
// CI is expected to support all of the commands
if is_ci() && cfg!(linux) {
if is_ci() && cfg!(target_os = "linux") {
panic!(
"expected command `{}` to be somewhere in PATH: {}",
command, e
Expand Down
2 changes: 1 addition & 1 deletion clap_complete_nushell/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ pub(crate) fn has_command(command: &str) -> bool {
Ok(output) => output,
Err(e) => {
// CI is expected to support all of the commands
if is_ci() && cfg!(linux) {
if is_ci() && cfg!(target_os = "linux") {
panic!(
"expected command `{}` to be somewhere in PATH: {}",
command, e
Expand Down

0 comments on commit 1c5a625

Please sign in to comment.