aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/dist.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-05 10:29:59 +0000
committerGitHub <[email protected]>2020-03-05 10:29:59 +0000
commitee75928855ba0b969376de9a13232895df24066b (patch)
treeebf6c4374e224174ad13134809e2d800e13272ac /xtask/src/dist.rs
parent31fd10b2a5fe11476e7f4a21b0f0955ea934e3a6 (diff)
parentca62f568bec128d2eba2032337354e01ebef6858 (diff)
Merge #3471
3471: Remove pwd r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/dist.rs')
-rw-r--r--xtask/src/dist.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs
index e1126602a..821ba041b 100644
--- a/xtask/src/dist.rs
+++ b/xtask/src/dist.rs
@@ -3,7 +3,7 @@ use std::path::PathBuf;
3use anyhow::Result; 3use anyhow::Result;
4 4
5use crate::{ 5use crate::{
6 not_bash::{fs2, pushd, pwd, rm_rf, run}, 6 not_bash::{fs2, pushd, rm_rf, run},
7 project_root, 7 project_root,
8}; 8};
9 9
@@ -22,7 +22,7 @@ pub fn run_dist(nightly: bool) -> Result<()> {
22fn dist_client(nightly: bool) -> Result<()> { 22fn dist_client(nightly: bool) -> Result<()> {
23 let _d = pushd("./editors/code"); 23 let _d = pushd("./editors/code");
24 24
25 let package_json_path = pwd().join("package.json"); 25 let package_json_path = PathBuf::from("./package.json");
26 let original_package_json = fs2::read_to_string(&package_json_path)?; 26 let original_package_json = fs2::read_to_string(&package_json_path)?;
27 let _restore = 27 let _restore =
28 Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; 28 Restore { path: package_json_path.clone(), contents: original_package_json.clone() };