fix: Fix wrong cfg(linux)

This commit is contained in:
Lzu Tao 2024-06-26 01:18:15 +07:00 committed by Ed Page
parent 2d2d1f4987
commit 1c5a625ad0
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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