Merge pull request #2 from paritytech/fix_dir_issues

Fix dir issues
pull/9/head
Denis S. Soldatov aka General-Beck 5 years ago committed by GitHub
commit 7a6ac0f4cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,6 +68,6 @@ ARGS:
## How to install
```bash
git clone https://gitlab.parity.io/General-Beck/cargo-remote.git
git clone https://github.com/sgeisler/cargo-remote
cargo install --path cargo-remote/
```

@ -133,8 +133,8 @@ fn main() {
.find(|p| p.manifest_path == manifest_path)
.map_or_else(
|| {
error!("No metadata found. Use --manifest_path for execute");
exit(-2);
info!("No metadata found. Setting the remote dir name like the local. Or use --manifest_path for execute");
project_dir.file_name().and_then(|x| x.to_str()).unwrap()
},
|p| &p.name,
);

Loading…
Cancel
Save