Run valet install after compose update (fix #99)

This commit is contained in:
Roey Darwish Dror
2018-12-17 10:53:05 +02:00
parent c916b2920d
commit 83b6f9ace4
2 changed files with 7 additions and 1 deletions

View File

@@ -90,7 +90,8 @@ Just run `topgrade`. It will run the following steps:
* Node
* Run `yarn global update` if yarn is installed.
* Run `npm update -g` if NPM is installed and `npm root -g` is a path inside your home directory.
* Run `composer global update` if Composer's home directory is inside the home directory of the user.
* Run `composer global update` if Composer's home directory is inside the home directory of the
user. Run `valet install` after.
* Upgrade Atom packages
* Run `gem upgrade --user-install` if `~/.gem` exists
* **Linux**: Update Flatpak packages

View File

@@ -248,6 +248,11 @@ pub fn run_composer_update(base_dirs: &BaseDirs, dry_run: bool) -> Option<(&'sta
.spawn()?
.wait()?
.check()?;
if let Some(valet) = utils::which("valet") {
Executor::new(&valet, dry_run).arg("install").spawn()?.wait()?.check()?;
}
Ok(())
}()
.is_ok();