fix pfiles.rb
forgot the '?'
This commit is contained in:
parent
6adf061e99
commit
b398dea8cb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user