qi (quick install) fix
authorRalph Amissah <ralph@amissah.com>
Wed, 8 Apr 2015 14:49:37 +0000 (10:49 -0400)
committerRalph Amissah <ralph@amissah.com>
Thu, 9 Apr 2015 03:05:39 +0000 (23:05 -0400)
setup/qi_libs.rb

index 80ccc8d89a1c1793b941b989483c4bc7025cec20..90359a5ca6238b3c498cee3bc8a3c98b8e7c6c09 100644 (file)
@@ -138,14 +138,14 @@ module Utils
 end
 module Install
                                                            #%% using a directory and its mapping
-  def self.setup_find_create(dir_get,dir_put,exclude_files=[''],act)               #primary,
+  def self.setup_find_create(dir_get,dir_put,exclude_files=['\*'],act)               #primary,
     begin
       Find.find("#{Project_details.dir.pwd}/#{dir_get}") do |f|
         stub=f.scan(/#{Project_details.dir.pwd}\/#{dir_get}\/(\S+)/).join
         place="#{dir_put}/#{stub}"
         action=case
         when File.file?(f)
-          unless f =~/#{exclude_files.inspect}/
+          unless f =~/#{exclude_files.join("|")}/
             unless act==:dryrun
               cp(f,place)
               Utils.chmod_file(place)