Linuxbrew (fix #31)

This commit is contained in:
Roey Darwish Dror
2018-06-25 22:29:51 +03:00
parent f2db61f4ad
commit ef3c4897bc
2 changed files with 4 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ Just run `topgrade`. It will run the following steps:
* *CentOS/RHEL*: Run `yum upgrade`
* *Fedora* - Run `dnf upgrade`
* *Debian/Ubuntu*: Run `apt update && apt dist-upgrade`
* *macOS*: Run `brew update && brew upgrade`
* *Unix*: Run `brew update && brew upgrade`. This should handle both Homebrew and Linuxbrew.
* Check if the following paths are tracked by Git. If so, pull them:
* ~/.emacs.d (Should work whether you use [Spacemacs](http://spacemacs.org/) or a custom configuration)
* ~/.zshrc

View File

@@ -131,11 +131,9 @@ fn run() -> Result<(), Error> {
}
}
if cfg!(target_os = "macos") {
if let Some(brew) = utils::which("brew") {
terminal.print_separator("Homebrew");
run_homebrew(&brew).report("Homebrew", &mut reports);
}
terminal.print_separator("Brew");
run_homebrew(&brew).report("Brew", &mut reports);
}
git_repos.insert(home_path(".emacs.d"));