fix pfiles.rb

forgot the '?'
This commit is contained in:
Atlas Cove 2023-10-27 14:56:04 +01:00
parent 397f9369d6
commit 7dda7cdc1e

View File

@ -4,9 +4,7 @@
require 'find' require 'find'
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt') ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
if ignore != [] if ignore != []
ignore.map! do |i| ignore.map! { |i| "in/#{i}" }
"in/#{i}"
end
end end
class Enumerator class Enumerator
def collect def collect
@ -47,7 +45,7 @@ when "dir"
when "rest" when "rest"
for i in l do for i in l do
next if ignore.include?(i) 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 i
print ' ' unless i==l.last print ' ' unless i==l.last
end end