fix pfiles.rb

forgot the '?'
This commit is contained in:
Atlas Cove 2023-10-27 14:56:04 +01:00
parent 6adf061e99
commit b398dea8cb

View File

@ -4,9 +4,7 @@
require 'find'
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
if ignore != []
ignore.map! do |i|
"in/#{i}"
end
ignore.map! { |i| "in/#{i}" }
end
class Enumerator
def collect
@ -47,7 +45,7 @@ when "dir"
when "rest"
for i in l do
next if ignore.include?(i)
unless /\.(s[ac]ss|txti|org|md)$/.match?(i) or File.directory(i)
unless /\.(s[ac]ss|txti|org|md|html)$/.match?(i) or File.directory?(i)
print i
print ' ' unless i==l.last
end