aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/install.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/install.rs')
-rw-r--r--xtask/src/install.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/src/install.rs b/xtask/src/install.rs
index 3df021acc..1d13b26da 100644
--- a/xtask/src/install.rs
+++ b/xtask/src/install.rs
@@ -4,7 +4,10 @@ use std::{env, path::PathBuf, str};
4 4
5use anyhow::{bail, format_err, Context, Result}; 5use anyhow::{bail, format_err, Context, Result};
6 6
7use crate::not_bash::{pushd, run}; 7use crate::{
8 not_bash::{pushd, run},
9 project_root,
10};
8 11
9// Latest stable, feel free to send a PR if this lags behind. 12// Latest stable, feel free to send a PR if this lags behind.
10const REQUIRED_RUST_VERSION: u32 = 41; 13const REQUIRED_RUST_VERSION: u32 = 41;
@@ -24,6 +27,7 @@ pub struct ServerOpt {
24 27
25impl InstallCmd { 28impl InstallCmd {
26 pub fn run(self) -> Result<()> { 29 pub fn run(self) -> Result<()> {
30 let _dir = pushd(project_root());
27 let both = self.server.is_some() && self.client.is_some(); 31 let both = self.server.is_some() && self.client.is_some();
28 if cfg!(target_os = "macos") { 32 if cfg!(target_os = "macos") {
29 fix_path_for_mac().context("Fix path for mac")? 33 fix_path_for_mac().context("Fix path for mac")?