[F] Fix git install
This commit is contained in:
parent
fdfd9816f5
commit
713bcce0ec
2 changed files with 6 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ Updates to `neowofetch` begins with the emoji 🖼️
|
||||||
Note: You can install the latest nightly version by using:
|
Note: You can install the latest nightly version by using:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pip install git+https://github.com/hykilpikonna/hyfetch.git@master
|
cargo install --git https://github.com/hykilpikonna/hyfetch
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- CHANGELOG STARTS HERE --->
|
<!-- CHANGELOG STARTS HERE --->
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ fn main() {
|
||||||
let dir = PathBuf::from(env::var_os("CARGO_WORKSPACE_DIR").unwrap_or_else(|| env::var_os("CARGO_MANIFEST_DIR").unwrap()));
|
let dir = PathBuf::from(env::var_os("CARGO_WORKSPACE_DIR").unwrap_or_else(|| env::var_os("CARGO_MANIFEST_DIR").unwrap()));
|
||||||
let o = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
let o = PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
||||||
|
|
||||||
|
// Ensure output directory exists
|
||||||
|
if !o.exists() {
|
||||||
|
fs::create_dir_all(&o).expect("Failed to create OUT_DIR");
|
||||||
|
}
|
||||||
|
|
||||||
for file in &["neofetch", "hyfetch"] {
|
for file in &["neofetch", "hyfetch"] {
|
||||||
let src = dir.join(file);
|
let src = dir.join(file);
|
||||||
let dst = o.join(file);
|
let dst = o.join(file);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue