[F] Fix git install

This commit is contained in:
Azalea Gui 2025-08-21 12:35:04 -04:00
parent fdfd9816f5
commit 713bcce0ec
2 changed files with 6 additions and 1 deletions

View file

@ -124,7 +124,7 @@ Updates to `neowofetch` begins with the emoji 🖼️
Note: You can install the latest nightly version by using:
```sh
pip install git+https://github.com/hykilpikonna/hyfetch.git@master
cargo install --git https://github.com/hykilpikonna/hyfetch
```
<!-- CHANGELOG STARTS HERE --->

View file

@ -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 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"] {
let src = dir.join(file);
let dst = o.join(file);