Skip to content

Commit 471668e

Browse files
committed
Check path is file
1 parent 719b21b commit 471668e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/toolchains.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ impl Toolchain {
243243
if !path.is_absolute() && !path.starts_with("./") && !path.starts_with(".\\") {
244244
if let Ok(mut dir) = std::env::current_dir() {
245245
dir.push(path);
246-
if dir.exists() {
246+
if dir.is_file() {
247247
script = Some(dir)
248248
}
249249
}

0 commit comments

Comments
 (0)