Skip to content

Commit

Permalink
feat: make dir moved in for
Browse files Browse the repository at this point in the history
  • Loading branch information
255doesnotexist committed Aug 25, 2024
1 parent 264ed7e commit ac6f9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/testscript_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ impl TestScriptManager {
pub fn new(distro: &str, package: &str) -> Result<Self, Box<dyn std::error::Error>> {
let dir = format!("./{}/{}", distro, package);
let mut test_scripts = Vec::new();
for entry in std::fs::read_dir(&dir)? {
for entry in std::fs::read_dir(dir)? {
let entry = entry?;
let path = entry.path();
if path.is_file() && path.extension().unwrap_or_default() == "sh" {
Expand All @@ -26,3 +26,4 @@ impl TestScriptManager {
&self.test_scripts
}
}

0 comments on commit ac6f9fe

Please sign in to comment.