Skip to content

Commit

Permalink
build.rs: run theme stale check only if in git checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
epilys committed Mar 26, 2023
1 parent c3be451 commit 3ddfe53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};

fn main() -> std::io::Result<()> {
println!("cargo:rerun-if-changed=src/themes");
{
if Path::new(".git").exists() {
fn read_fn(p: impl AsRef<Path>) -> Result<VecDeque<PathBuf>, std::io::Error> {
std::fs::read_dir(p)?
.map(|res| res.map(|e| e.path()))
Expand Down

0 comments on commit 3ddfe53

Please sign in to comment.