Don't run APM on BSDs (fix #68)

This commit is contained in:
Your Name
2018-10-04 11:26:51 +03:00
parent a9c534a2a2
commit 9bf893a14a
2 changed files with 74 additions and 11 deletions

View File

@@ -238,6 +238,17 @@ fn run() -> Result<(), Error> {
|terminal| node::yarn_global_update(terminal, opt.dry_run),
&mut terminal,
));
#[cfg(
not(
any(
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
target_os = "dragonfly"
)
)
)]
report.push_result(execute(
|terminal| generic::run_apm(terminal, opt.dry_run),
&mut terminal,