Skip to content

Commit

Permalink
Fix Regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
galetahub committed Feb 19, 2010
1 parent be84160 commit 14c753d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions lib/ckeditor/utils.rb
Expand Up @@ -9,23 +9,18 @@ def self.recursive_copy(options)
logging = options[:logging].nil? ? true : options[:logging]

Dir.foreach(source) do |entry|
next if entry =~ /^(\.|_).+/
next if entry =~ /^(\.|_)/

if File.directory?(File.join(source, entry))
unless File.exist?(File.join(dest, entry))
if logging
puts "Creating directory #{entry}..."
end
FileUtils.mkdir File.join(dest, entry)#, :noop => true#, :verbose => true
puts "Creating directory #{entry}..." if logging
FileUtils.mkdir File.join(dest, entry)
end
recursive_copy(:source => File.join(source, entry),
:dest => File.join(dest, entry),
:logging => logging)
else
if logging
puts " Installing file #{entry}..."
end
FileUtils.cp File.join(source, entry), File.join(dest, entry)#, :noop => true#, :verbose => true
FileUtils.cp File.join(source, entry), File.join(dest, entry)
end
end
end
Expand Down

0 comments on commit 14c753d

Please sign in to comment.