Skip to content

Commit 8b959bc

Browse files
committed
check on real paths
1 parent 6331a94 commit 8b959bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/arduino_ci/arduino_cmd.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ def each_library_example(installed_library_path)
234234
examples.each do |e|
235235
proj_file = File.join(example_path, e, "#{e}.ino")
236236
puts "Considering #{proj_file}"
237-
yield e if File.exist?(proj_file)
237+
real_path = File.realpath(proj_file)
238+
exists_asis = File.exist?(proj_file)
239+
exists_real = File.exist?(real_path)
240+
puts "path exists: #{exists_asis}\t realpath exists: #{exists_real}\t (#real_path)"
241+
yield e if exists_asis || exists_real
238242
end
239243
end
240244
end

0 commit comments

Comments
 (0)