Skip to content

Commit 10d7655

Browse files
committed
fix: filter by dir
1 parent e9b3e0c commit 10d7655

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/qtl-xtrain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ train_dirs, dst_dir = ARGV
2020
num_failures = 0
2121

2222
# loop over train directories glob
23-
Dir.glob(train_dirs).each do |train_dir|
23+
Dir.glob(train_dirs).select{|d|File.directory? d}.each do |train_dir|
2424

2525
# function to get a set of run numbers from one of the argument dirs
2626
def get_runnums(path, type)

0 commit comments

Comments
 (0)