Fix composer (fix #173)

This commit is contained in:
Roey Darwish Dror
2019-07-01 08:56:18 +03:00
parent 6ef54929b7
commit 69e9ff693b

View File

@@ -116,10 +116,10 @@ pub fn run_custom_command(name: &str, command: &str, run_type: RunType) -> Resul
pub fn run_composer_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
let composer = utils::require("composer")?;
let composer_home = Command::new(&composer)
.args(&["global", "config", "--absolute", "home"])
.args(&["global", "config", "--absolute", "--quiet", "home"])
.check_output()
.map_err(|_| Error::from(ErrorKind::SkipStep))
.map(PathBuf::from)
.map(|s| PathBuf::from(s.trim()))
.and_then(PathExt::require)?;
if !composer_home.is_descendant_of(base_dirs.home_dir()) {