mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
fix: Fix wrong cfg(linux)
This commit is contained in:
parent
2d2d1f4987
commit
1c5a625ad0
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue