Invoke NPM only if the global installation dir is in the home directory (fix #21)
This commit is contained in:
10
src/steps.rs
10
src/steps.rs
@@ -73,16 +73,6 @@ pub fn run_vim(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn run_npm(npm: &PathBuf) -> Result<(), failure::Error> {
|
||||
Command::new(&npm)
|
||||
.args(&["update", "-g"])
|
||||
.spawn()?
|
||||
.wait()?
|
||||
.check()?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn run_apm(apm: &PathBuf) -> Result<(), failure::Error> {
|
||||
Command::new(&apm)
|
||||
.args(&["upgrade", "--confirm=false"])
|
||||
|
||||
Reference in New Issue
Block a user