Brew cask should only run in macos (fix #467) (#468)

This commit is contained in:
Roey Darwish Dror
2020-07-10 11:22:29 +03:00
committed by GitHub
parent 065565240e
commit 25b6b97d38
3 changed files with 38 additions and 38 deletions

View File

@@ -143,10 +143,10 @@ fn run() -> Result<()> {
#[cfg(unix)]
{
runner.execute(Step::Brew, "Brew", || unix::run_brew(&ctx))?;
runner.execute(Step::Brew, "Brew Cask", || unix::run_brew_cask(&ctx))?;
#[cfg(target_os = "macos")]
{
runner.execute(Step::Brew, "Brew Cask", || macos::run_brew_cask(&ctx))?;
runner.execute(Step::MacPorts, "MacPorts", || macos::run_macports(&ctx))?;
runner.execute(Step::MicrosoftAutoUpdate, "Microsoft AutoUpdate", || {
macos::run_msupdate(&ctx)