aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/dist.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-05 10:15:55 +0000
committerAleksey Kladov <[email protected]>2020-03-05 10:25:23 +0000
commitca62f568bec128d2eba2032337354e01ebef6858 (patch)
treedae4de49aa1269ade7c7f668a19d5df72899fc57 /xtask/src/dist.rs
parent166c07b28d0f5431bb599e067336c332d912e401 (diff)
Remove pwd
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() };