diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-04-08 10:49:37 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-04-08 23:05:39 -0400 |
commit | 72fbfab2726d93281f7cd6b4fa395f90512d41ab (patch) | |
tree | f775a987b90a5ba1d505274c13f9da9eaadb7bc7 /setup/qi_libs.rb | |
parent | sisu packaging notes (diff) |
qi (quick install) fix
Diffstat (limited to 'setup/qi_libs.rb')
-rw-r--r-- | setup/qi_libs.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index 80ccc8d8..90359a5c 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -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) |