Skip to content

Commit 3ddfe53

Browse files
committed
build.rs: run theme stale check only if in git checkout
1 parent c3be451 commit 3ddfe53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};
33

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

0 commit comments

Comments
 (0)