aboutsummaryrefslogtreecommitdiffhomepage
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rw-r--r--setup/qi_libs.rb4
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)